Our solution is in Umbraco version 10.2.0 and it has custom code that uses ActionFilterAttribute to redirect the urls to correct country culture based on the user location.
The web page is multiculture site.
Skybrud Redirects package is installed to add additional redirect rules (from old url to new url). But this is not working.
Is the custom redirect preventing the package to run?
Its possible, it depends on the order of things I suspect. Skybrud Redirects happens at the end of the request pipeline.
It also only kicks in if the request response is returning a 404, so if there is anything that kicks in early that returns any other status code, then Skybrud won't trigger.
Skybrud Redirects Package
Our solution is in Umbraco version 10.2.0 and it has custom code that uses ActionFilterAttribute to redirect the urls to correct country culture based on the user location.
The web page is multiculture site. Skybrud Redirects package is installed to add additional redirect rules (from old url to new url). But this is not working.
Is the custom redirect preventing the package to run?
Hey Ramya,
Its possible, it depends on the order of things I suspect. Skybrud Redirects happens at the end of the request pipeline.
It also only kicks in if the request response is returning a 404, so if there is anything that kicks in early that returns any other status code, then Skybrud won't trigger.
Nik
Thanks for the quick response. I will have a check on the 404 status code.
I have added a custom 404 page in appsettings.json.
"Error404Collection": [ { "ContentId": 11111, "Culture": "default" } ]
is working on a reply...