Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing Slash does not work from address bar when enabled Static Export #1358

Open
3 tasks done
zulalnb opened this issue Sep 20, 2024 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@zulalnb
Copy link

zulalnb commented Sep 20, 2024

Description

When enabled static export and trailing slash together, URL in the internal links redirects to the version with trailing slash, but in the address bar does not.

Verifications

  • I've verified that the problem I'm experiencing isn't covered in the docs.
  • I've searched for similar, existing issues on GitHub and Stack Overflow.
  • I've compared my app to a working example to look for differences.

Mandatory reproduction URL

https://github.com/zulalnb/next-intl-static-export-trailing-slash-issue

Reproduction description

Steps to reproduce:

  1. type git clone https://github.com/zulalnb/next-intl-static-export-trailing-slash-issue.git
  2. type npm install
  3. type npm run build
  4. type npx serve@latest out
  5. open http://localhost:3000/
  6. enter http://localhost:3000/en/sub in the address bar manually

Expected behaviour

I expected to ensure that entering a URL directly in the address bar redirects to the version with a trailing slash.

@zulalnb zulalnb added bug Something isn't working unconfirmed Needs triage. labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

1 participant