skybrud / Skybrud.Umbraco.Redirects

Redirects manager for Umbraco.
https://packages.limbo.works/skybrud.umbraco.redirects/
MIT License
36 stars 41 forks source link

Redirects based on the original URL query string #196

Closed MiguelLopez6 closed 5 months ago

MiguelLopez6 commented 5 months ago

Which version of Skybrud Redirects are you using? (Please write the exact version, example: 4.0.8)

4.0.23

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.8.3

Question

We have a set of URLs from the old website, where the old URL has an anchor and the new URL is a totally different page. For instance, we want to redirect from /industry-partners.html#hotel to /industry-partners/hotel-partners. This is due to a restructure of the site. There are several pages that have been restructured and need to redirect to few different pages depending on the query string. When I add an original URL with the anchor, this is deleted automatically. Is there a way to make it work? Thanks.

abjerner commented 5 months ago

Hi @MiguelLopez6

Something like #hotel is not part of the query string, but the fragment part of the URL. This isn't passed on to the server, so the redirects package can't check against something like that.

I hope that makes sense 😉

MiguelLopez6 commented 5 months ago

Thanks. I didn't mean "query string", but you understood me :). Thanks for the clarification.