Skybrud Redirects (Umbraco v13) - static file / me...
# help-with-other
n
Has anyone seen static file redirects not triggering with SkyBrud? Working on a site that has been migrated to v13 (originally v7 => v8, now v13). Skyrbud was installed back in the v8 days and has a large amount of redirects in it, however all of the ones that seem to be for static files / media items (i.e. end in a file extension) are not triggering, If the file extension is removed in the redirect rule and from the requested URL they trigger. I'm not really sure where to start my investigation with this, so looking for some pointers.
j
There is something about requests containing a
.
being considered static files in newer Umbraco version and thus getting an umbraco context is not possible. Found an issue or discussion about this a while ago that I couldn't locate when I had issues creating a sitemap on /sitemap.xml but it worked just fine on /sitemapxml That could be it if skybrud requires an umbraco context for something - the original issue I found had a note by Bjarke but I can't find it right now with the limited Googling I did
n
Hmm.. interesting, think this might be a "me" problem rather than a Skybrud issue
j
Possibly, this is the issue I was talking about: https://github.com/umbraco/Umbraco-CMS/issues/11692#issuecomment-977877461 Was just thinking if Skybrud redirects uses the umbraco context for getting nodes, etc then it may not work if the request url is considered a client-side request by Umbraco which is all urls with a period in them
a
Works on my machine ¯\_(ツ)_/¯
I can't remember which versions, but there used to be an issue with the redirects logic failing since an Umbraco context wasn't available. This should however be fixed in newer releases, as a new context will be created if not present. I just a test on one of my sites, and redirecting
/test.xml
works fine. However keep in mind that if the server doesn't respond with a 404 status code, the redirects logic won't kick in.
n
It turned out there was a bit of middleware changing the path for 404 responses before it got to Skybrud, removed it as not needed and Skybrud kicked in 🙂
a
Awesome 😄
It's usually something like that
108 Views