Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GreyGhostStudio opened this issue Oct 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@GreyGhostStudio
Copy link

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 GreyGhostStudio added the bug Something isn't working label Oct 24, 2023
@D-Inventor
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants