thecadams / 301RedirectModule

An improved version of the Sitecore 301 redirect module by Chris Castle, available at http://trac.sitecore.net/301RedirectModule
MIT License
30 stars 67 forks source link

Exact match pattern #61

Closed aadidevsite closed 4 years ago

aadidevsite commented 4 years ago

Does the exact match redirect support # in the URL

We do have urls similar to the below in our site that we are trying to redirect to, but I think # character in the URL is creating a problem and does not work. Do I have another way to support this kind of URL? Appreciate your reply.

https://testsite.com/xx/control-product/regulators/flow/regulator-295#!/prod-title=specialt-product-113

thecadams commented 4 years ago

The anchor is only seen by the backend in the browser; so this won't be possible with the RedirectModule without it loading a page in the browser to check whether there's an anchor supplied, which would unfortunately break all the existing behavior that depends on the 301 response (as opposed to a 200 that would then issue some type of JS based redirect)

You might want to consider building a page that does what I describe, and if you build it cleanly enough (ie. don't risk breaking any existing behavior), we could consider merging that as a new type of redirect.

aadidevsite commented 4 years ago

Thank you, makes sense.