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

Changes

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


// when we convert code to use ReturnUrlForm we may leave behind bookmarks using "returnURL"
@Deprecated
public ReturnURLString getReturnURL()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we delete this and the setter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted

<h3>OLAP Cube definitions in this folder:</h3>
<p>
<%=link("create new", new ActionURL(OlapController.CreateDefinitionAction.class, getContainer()).addReturnURL(getActionURL().clone())).id("create-cube-definition")%>
<%=link("create new", new ActionURL(OlapController.CreateDefinitionAction.class, getContainer()).addReturnUrl(getActionURL().clone())).id("create-cube-definition")%>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do all these methods really need to clone() the getActionURL()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. Removed

}
%>
<%=link("create new", new ActionURL(OlapController.CreateDefinitionAction.class, getContainer()).addReturnURL(getActionURL().clone()))%>
<%=link("create new", new ActionURL(OlapController.CreateDefinitionAction.class, getContainer()).addReturnUrl(getActionURL().clone()))%>
Copy link
Contributor

Choose a reason for hiding this comment

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

clone()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@labkey-jeckels labkey-jeckels merged commit e45b48f into develop Mar 5, 2025
6 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