Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Conflicting with custom route handlers #216

Open
adayinthelifeofapro opened this issue Feb 25, 2025 · 1 comment
Open

Bug: Conflicting with custom route handlers #216

adayinthelifeofapro opened this issue Feb 25, 2025 · 1 comment
Labels
type/question Further information is requested

Comments

@adayinthelifeofapro
Copy link

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

13.0.6

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

13.6.0

Bug description

We are having an issue whereby some of our redirects are not working as the custom route handlers seem to be firing before the redirects get performed, if you look at the screenshot below you will see the two custom route handlers we have setup.

Is there a way to ensure that the redirects get performed "before" the custom route handlers??

Image

@adayinthelifeofapro adayinthelifeofapro added the type/bug Something isn't working label Feb 25, 2025
@abjerner
Copy link
Member

Is there a way to ensure that the redirects get performed "before" the custom route handlers??

No, not really. This is by design.

The redirects module will only look at responses returning a 404 status code. So if a given URL responds with a 200 OK (custom route or not), the redirects module will not do anything.

Hope that makes sense 😉

@abjerner abjerner added type/question Further information is requested and removed type/bug Something isn't working labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants