execute RedirectToCanonicalUrl before UseErrorPages #130
Unanswered
parmarnishant
asked this question in
Q&A
Replies: 2 comments
-
Will investigate. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The templates behaviour is that if the page is not found there is no redirect. If you have changed the middleware pipeline order, this may have caused what you are seeing. Also the 404 page is only visible using the Production environment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using both RedirectToCanonicalUrl and UseStatusCodePagesWithReExecute in cms project.
My issue is that 404 Error Page is displayed before redirecting to Canonical Url.
For example, if "site/pagename" is valid url
"site/Pagename" should first redirect to "site/pagename" , and then if not found display 404 page.
Beta Was this translation helpful? Give feedback.
All reactions