SurfaceController: Add option to add query string to RedirectToCurrentUmbracoUrl() #14356
jakob-bagterp
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to the
RedirectToCurrentUmbracoPage()
method that has an overload option for adding a query string, would it make sense to giveRedirectToCurrentUmbracoUrl()
a similar option to add a query string?My use case: My site is configured to remove trailing slash from URLs, e.g.
example.com/some-page
instead of the Umbraco defaultexample.com/some-page/
. When I use the surface controller on a search page, I then get unnecessary redirects since I have to use theRedirectToCurrentUmbracoPage(QueryString queryString)
method that, I imagine, doesn't retain the URL without trailing slash/search?query=something
, but instead replaces the URL with the default trailing slash/search/?query=something
.Beta Was this translation helpful? Give feedback.
All reactions