chocolatey / docs

https://docs.chocolatey.org - new docs website
Apache License 2.0
160 stars 180 forks source link

Redirect from `/` redirects to the live docs website when running in preview #1059

Open vexx32 opened 2 months ago

vexx32 commented 2 months ago

What You Are Seeing?

Opening the website root / from the yarn preview redirects the browser to the live site, rather than to the /en-us from the preview site. 2024-08-20_10-31-01

What is Expected?

Trying to open the preview site should not redirect to the live site.

How Did You Get This To Happen? (Steps to Reproduce)

  1. yarn build
  2. yarn preview
  3. Navigate to http://localhost:5086/
  4. Get redirected to https://docs.chocolatey.org/en-us/
st3phhays commented 1 month ago

@vexx32 Thanks for catching and reporting this. As a workaround for now, going to http://localhost:5086/en-us/ does seem to work.