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

SearchControls: Don't use UrlParams instance for setEditorUrl() #236

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

sukhwinder33445
Copy link
Contributor

No description provided.

@sukhwinder33445 sukhwinder33445 self-assigned this Nov 21, 2024
- Otherwise for example calling `$searchbar->getEditorUrl()->setParam('foo')` to manupulate params in *Any*Controller
  will affect the params of $redurectUrl
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Note that I do not approve this to justify what you did here.

The reason is rather, that the redirect URL can be provided by the caller. In this case the caller is responsible for the parameters, in which case it's bad practice to pass them on to another URL or even adjust them without cloning.

@nilmerg
Copy link
Member

nilmerg commented Nov 21, 2024

@cla-bot check

@nilmerg nilmerg merged commit e880e10 into main Nov 21, 2024
21 checks passed
@nilmerg nilmerg deleted the fix-search-controls branch November 21, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants