Skip to content

News links are broken when accessing /news/ #441

@Nothing4You

Description

@Nothing4You

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions