Infocaster / UrlTracker

An Umbraco package that tracks 404 not found results and helps you redirect visitors to the right page
https://infocaster.net/wat-we-doen/umbraco-plugins/301-url-tracker
MIT License
17 stars 12 forks source link

Redirects to external site that ends in static file extension is appending a slash at the end. #162

Open GreyGhostStudio opened 10 months ago

GreyGhostStudio commented 10 months ago

Example = redirect: "/sample" destination: "https://www.sample.com/page.html"

Result = destination: "https://www.sample.com/page.html/"

The destination server doesn't like this and throws an exception.

D-Inventor commented 10 months ago

Hi @GreyGhostStudio ! Thank you for reaching out and creating a bug report.

Can you share with me if your Umbraco is configured to add trailing slashes behind urls? You can find out more about this config here in the Umbraco docs: https://docs.umbraco.com/umbraco-cms/reference/configuration/requesthandlersettings#add-trailing-slash

Notice that this configuration is true by default, so if you haven't explicitly set it yourself, it's likely enabled.

The URL Tracker's behaviour with trailing slashes is linked to this configuration. You may be able to work around this issue by disabling trailing slashes. That would be a quick fix for you.

GreyGhostStudio commented 10 months ago

Hi @D-Inventor. That work around did the trick and will get us by for now. Thanks!!