tursodatabase / turso-docs

Turso Documentation
https://docs.turso.tech
MIT License
11 stars 49 forks source link

Link navigation 404s when no trailing slash in URLs #111

Closed ra-jeev closed 10 months ago

ra-jeev commented 11 months ago

Issue

Links clicks give Page Not Found when there is no trailing slash in the URLs

Description

When you're on the tutorials page and try to click any of the links in the main content (e.g. Get started with the Turso CLI), you get Page Not Found. This happens because it tries to take you to https://docs.turso.tech/get-started-turso-cli which doesn't exist.

But if you have the trailing slash (/) on the tutorials page then it works fine and you're redirected to https://docs.turso.tech/tutorials/get-started-turso-cli (which is the correct URL).

The same issue can be observed on other similar pages (e.g. E-Commerce Store tutorial)

Expectation

Need to handle trailing slash correctly on the hosting provider with rewrites.

notrab commented 10 months ago

Thanks for the report @ra-jeev. We're currently rebuilding our docs so this will be properly fixed when we move those tutorials to our blog.