docs icon indicating copy to clipboard operation
docs copied to clipboard

Throws 404 code when visiting any route directly

Open ml4den opened this issue 2 years ago • 3 comments

Description

When browsing the docs website a 404 error is returned if the entry point is anything apart from https://docs.hoppscotch.io/.

Scenario A:

  1. Visit https://docs.hoppscotch.io/, browser loads the page.
  2. Get code 200.
  3. Click GraphQL (or anything else), Nuxt changes the route and renders the page.
  4. Code is still 200.

Scenario B:

  1. Visit https://docs.hoppscotch.io/graphql (or any other direct route), browser loads the page.
  2. Get code 404.
  3. Click Introduction (or anything else), Nuxt changes the route and renders the page.
  4. Code is still 404.

Impact

⚠️ This will be hurting docs SEO quite badly, making it more difficult for people to find info on the project.

Cause

Here are some relevant results.

ml4den avatar May 07 '22 11:05 ml4den

Its look good to me when I visited the above page. I tried with both the option. Can you please confirm.?

rahuldimri avatar Sep 28 '22 14:09 rahuldimri

Scenario B still returns a 404 status code, even though it loads the page correctly. image

ml4den avatar Sep 28 '22 18:09 ml4den

Can confirm, 404 when accessing any route directly that isn't the docs homepage.

Piperapk avatar Sep 28 '22 18:09 Piperapk