Skip to content

Resource version pagination uses incorrect URL #1556

@dpb587-pivotal

Description

@dpb587-pivotal

Hi - when reviewing a resource with many versions, trying to paginate to the next page sends us to an invalid URL (which happens to render the main pipeline). It's a bit confusing, and then we have to manually add back the query string to see previous pages of the resource versions.

For example, trying to go to the next page from...

/teams/main/pipelines/bosh:stemcells:3312.x/resources/pipelines

The URL becomes...

/teams/main/pipelines/bosh:stemcells:3312.x/resources/:3312/teams/main/pipelines/bosh%3Astemcells.x/resources/pipelines?limit=100&since=340485

If we manually update the URL with the query string we can view the older resources, but the page links break again.

/teams/main/pipelines/bosh:stemcells:3312.x/resources/pipelines?limit=100&since=340485

We theorize there's an incorrect regex somewhere which doesn't like our use of multiple levels of :? The pagination behavior works fine when there's not any or a single : in the pipeline name.

We're running version 3.4.1 deployed with BOSH on GCP and this happens to us in Google Chrome 60.0.3112.113.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions