Skip to content

Missing trailing slash when opening a source or creating a new folder #920

@d0gkiller87

Description

@d0gkiller87

Description
Tested on v0.7.12-beta. When opening a source via the navbar or creating a new folder using the right-click menu, the resulting URL is missing a trailing slash. This causes issues when creating a file or folder, although the item has been successfully created, the resulting URL becomes malformed.

Some examples:

  • Clicking source1 redirects to https://example.com/files/source1. Creating a folder named folder1 from this page redirects you to https://example.com/files/source1folder1 (broken)
  • If you manually go to https://example.com/files/source1/ and create folder1, the redirect becomes https://example.com/files/source1/folder1 which will also be broken once you try to create a file/folder here

Expected Behavior
The resulting URL after opening a source or creating a new folder should include a trailing slash. Ideally, the website should automatically ensure a trailing slash is appended before redirecting to other paths to prevent malformed pages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions