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

Flat URL redirect ignores site #75

Open
mbrodala opened this issue May 23, 2022 · 0 comments
Open

Flat URL redirect ignores site #75

mbrodala opened this issue May 23, 2022 · 0 comments
Labels

Comments

@mbrodala
Copy link
Member

mbrodala commented May 23, 2022

Given two sites one and two with two pages with UID 1 and 2 respectively. When accessing https://one.example.org/2, a flat URL redirect to https://one.example.org/2-slug is triggered. However, if the page with UID 2 is within site two, then the result is a 404.

While this is technically correct the behavior should be adjusted to either of these:

  1. The initial request directly yields a 404 without redirect (the example above would stay at https://one.example.org/2)
  2. The redirect includes the target site base to actually work (the example above would redirect to https://two.example.org/2-slug)
@mbrodala mbrodala added the bug label May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant