UrlTracker icon indicating copy to clipboard operation
UrlTracker copied to clipboard

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

Open GreyGhostStudio opened this issue 2 years ago • 2 comments

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.

GreyGhostStudio avatar Oct 24 '23 15:10 GreyGhostStudio

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.

D-Inventor avatar Oct 25 '23 15:10 D-Inventor

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

GreyGhostStudio avatar Oct 25 '23 17:10 GreyGhostStudio