apify-docs icon indicating copy to clipboard operation
apify-docs copied to clipboard

Fix trailing slashes in the new docs

Open mtrunkat opened this issue 2 years ago • 1 comments

All landing pages have trailing slash, for example /api/client/js/. I think that it's fixable by replacing this rewrite:

rewrite ^/api/client/js$ /api/client/js/ redirect;

with

rewrite ^/api/client/js/$ /api/client/js redirect;
rewrite ^/api/client/js$ /api/client/js/index.html;

The user gets then redirected from trailing slash to normal, and that gets internally rewritten to index.html which should work. But I am not 100% sure that there are no downsides :) and it's low prio for now.

CC @B4nan

mtrunkat avatar Feb 23 '23 15:02 mtrunkat

We should prioritize this, as it also has other side effects like this:

https://github.com/apify/apify-docs/discussions/595

B4nan avatar May 22 '23 08:05 B4nan