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

News links are broken when accessing /news/ #441

Open
Nothing4You opened this issue Nov 17, 2024 · 1 comment
Open

News links are broken when accessing /news/ #441

Nothing4You opened this issue Nov 17, 2024 · 1 comment

Comments

@Nothing4You
Copy link
Contributor

https://join-lemmy.org/news works fine
https://join-lemmy.org/news/ adds an extra news/ to the URL.

href for the links is news/2024-11-15_-_Lemmy_Release_v0.19.7, which works fine when the relative base is assumed to be /, but not when it's /news/.

A couple ways to address this:

  • redirect from /news/ to /news
  • use absolute links to /news/2024-11-15_-_Lemmy_Release_v0.19.7
  • defining a <base> (might affect other URLs)

I originally ran across this from my Firefox Android URL autocomplete, although I'm not sure if this was caused by me previously accidentally visiting this manually by stripping the news article part from the URL or whether it's just Firefox autocompleting URLs based on paths seen in history.

@dessalines
Copy link
Member

I'm not sure we even need to address this, because news/ isn't actually linked anywhere on the site. I'm sure all the other urls work the same way.

If someone wants to add some redirects I wouldn't be opposed, but it seems like a waste of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants