The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
20
stars
16
forks
source link
NotFoundHandler redirecting to wrong URL in case of query string #54
Old URL = /search/ps_90/s_13?kw=oakley+radar+ev
New URL = /search-page/?query=oakley+radar+ev
Test case:
Visited URL: /search/ps_90/s_13?kw=oakley+radar+ev
Expected result: redirect to /search-page/?query=oakley+radar+ev
Actual result: redirect to /search-page//ps_90/s_13?kw=oakley%20radar%20ev&query=oakley
Given rules:
Old URL =
/search/ps_90/s_13?kw=oakley+radar+ev
New URL =/search-page/?query=oakley+radar+ev
Test case:
Visited URL:
/search/ps_90/s_13?kw=oakley+radar+ev
Expected result: redirect to/search-page/?query=oakley+radar+ev
Actual result: redirect to/search-page//ps_90/s_13?kw=oakley%20radar%20ev&query=oakley