Maps4HTML / web-map-doc

Documentation for Web-Map-Custom-Element https://maps4html.org/web-map-doc/
4 stars 10 forks source link

Trailing slash bug #41

Closed Malvoz closed 3 years ago

Malvoz commented 3 years ago
  1. Go to https://maps4html.org/web-map-doc/docs/
  2. Press <mapml-viewer> in the nav menu - URL should be https://maps4html.org/web-map-doc/docs/maps/mapml-viewer
  3. Paste https://maps4html.org/web-map-doc/docs/maps/mapml-viewer into your browser's adress bar and press enter - URL is now https://maps4html.org/web-map-doc/docs/maps/mapml-viewer/

The issue affects relative links in the documentation.

prushforth commented 3 years ago

The issue affects relative links in the documentation.

What is the impact, exactly? Sorry, I see the effect but not the problem.

Malvoz commented 3 years ago

Sorry I should've been more clear, to see the issue:

  1. go to https://maps4html.org/web-map-doc/docs/ -> API -> <mapml-viewer> API -> press the "Custom Projection API" link in the table: successfully navigated to https://maps4html.org/web-map-doc/docs/api/custom-projections
  2. press this link: https://maps4html.org/web-map-doc/docs/api/mapml-viewer-api (note that a redirect is made to https://maps4html.org/web-map-doc/docs/api/mapml-viewer-api/ (trailing slash)) -> press the "Custom Projection API" link in the table: Page not found (https://maps4html.org/web-map-doc/docs/api/api/custom-projections)
Malvoz commented 3 years ago

https://docusaurus.io/docs/docusaurus.config.js/#trailing-slash