chocolatey / chocolatey/docs

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

Open
#1,059 1 comment 1 reaction 0 assignees View on GitHub
Bug
Dominant language
MDX
Stars
223
Forks
248
Avg merge
1d 26m
Merged PRs (30d)
4

Description

### 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](https://github.com/user-attachments/assets/03712a09-3be7-4053-a32f-39a7ff78e638)

### 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/`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.