Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative URL for worldwide organisation links #3180

Merged
merged 1 commit into from May 9, 2024
Merged

Conversation

brucebolt
Copy link
Member

Links from the Worldwide Organisation pages currently use the web_url, which is absolute, and never includes the draft part of the URL.

This means that a user viewing a draft Worldwide Organisation will be taken to the live version of the page.

Updating to make the URL relative, meaning users are always taken to the correct version of the page.

This was never previously an issue, since worldwide organisations have not previously been editionable.

Trello card

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3180 May 8, 2024 14:22 Inactive
Links from the Worldwide Organisation pages currently use the `web_url`,
which is absolute, and never includes the draft part of the URL.

This means that a user viewing a draft Worldwide Organisation will be
taken to the live version of the page.

Updating to make the URL relative, meaning users are always taken to the
correct version of the page.

This was never previously an issue, since worldwide organisations have
not previously been editionable.
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3180 May 8, 2024 14:29 Inactive
@brucebolt brucebolt marked this pull request as ready for review May 8, 2024 15:11
Copy link
Contributor

@beccapearce beccapearce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@brucebolt brucebolt merged commit 82441d1 into main May 9, 2024
15 checks passed
@brucebolt brucebolt deleted the use-relative-url branch May 9, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants