sitediff icon indicating copy to clipboard operation
sitediff copied to clipboard

Paths with trailing slashes always have the trailing slash removed

Open Mark-Hetherington opened this issue 2 years ago • 1 comments

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.

Mark-Hetherington avatar Feb 15 '23 00:02 Mark-Hetherington

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.

kirk-brown-ew avatar Mar 04 '23 22:03 kirk-brown-ew