Skip to content

Conversation

@labkey-jeckels
Copy link
Contributor

Rationale

In 2021 we made a major push to use returnUrl consistently instead of srcURL or returnURL. We can finish the job.

Issue 7580: inconsistent use of returnUrl parameter

Related Pull Requests

Changes

  • Change everything to returnUrl and get rid of code checking for old versions of the parameters

@labkey-jeckels labkey-jeckels requested a review from a team March 4, 2025 01:33
editWellsURL.addParameter("editWellReturnUrl", getReturnURL().toString());
URLHelper returnUrl = getReturnUrl();
editWellsURL.addReturnUrl(returnUrl);
editWellsURL.addParameter("editWellReturnUrl", getReturnUrl().toString());
Copy link
Contributor

@labkey-adam labkey-adam Mar 4, 2025

Choose a reason for hiding this comment

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

Reuse returnUrl here? Doesn't really matter...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Optimized!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank goodness!

@labkey-jeckels labkey-jeckels merged commit c994f91 into develop Mar 5, 2025
4 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_returnUrl branch March 5, 2025 01:21
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.

3 participants