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

Paths with trailing slashes always have the trailing slash removed #154

Open
Mark-Hetherington opened this issue Feb 15, 2023 · 1 comment

Comments

@Mark-Hetherington
Copy link

We are working with a site that has a number of index pages, by category. It uses URLS of the form /content//, and uses the trailing slash to differentiate between other filters and a category filter. As such, removing the trailing slash results in a URL that is not on the site.

This is done in uriwrapper.rb:194

I understand the desire to canonicalise the URLs, however it might be useful if it were optional for some sites.

@kirk-brown-ew
Copy link
Collaborator

kirk-brown-ew commented Mar 4, 2023

SiteDiff currently doesn't support this type of URL.

Currently, SiteDiff creates directories and files based off of what it sees in paths. When it sees /content/ and /content//, it creates the same file.

We are investigating solutions for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants