skybrud / Skybrud.Umbraco.Redirects

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

Problem redirecting pdf #168

Closed marcusjm closed 1 year ago

marcusjm commented 1 year ago

Umbraco version 11.2.1 Skybrud Umbraco.Redirects 4.0.8

Regular pages work fine but while I get a 404 for my custom page it does not seem to see the pdf redirect for some reason.

image

abjerner commented 1 year ago

Hi @marcusjm

So far I've been unable to reproduce that this shouldn't work. The requested URL is /media/1417/msc-282-86-chap-v-reg-19.pdf, right? What is the response status code?

Can you share what the redirect looks like in the database?

Do you have any configuration related to 404 handling? Both in appsettings.json or in either Program.cs or Startup.cs?

marcusjm commented 1 year ago

Only the one regarding the custom page we discussed on discord. The response code this time is 404.

Removed the content due to being obsolete.

marcusjm commented 1 year ago

Ok that was the culprit then. Removal made it work.

abjerner commented 1 year ago

Great to hear it works. But to better understand the issue you had and what fixed it, what part did you remove?

The hotfix for settings the status code to 404 still seems to be required in 11.2.1, although that shouldn't affect static files.