Links broken in Wiki page preview #787

Closed
opened 2025-11-02 03:36:48 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @ypnos-web on GitHub (Jun 7, 2017).

Description

If you add relative links and go to preview mode, the base url has an extra slash ('/') character which makes the links fail.

E.g. the link [this](/) expands to https://try.gitea.io//hans/w00t//. When the page is saved, the link correctly expands to https://try.gitea.io/hans/w00t//

Originally created by @ypnos-web on GitHub (Jun 7, 2017). - Gitea version (or commit ref): 1.1.1 - Operating system: Arch Linux - Can you reproduce the bug at https://try.gitea.io: - [x] Yes at https://try.gitea.io/hans/w00t/wiki/Home ## Description If you add relative links and go to preview mode, the base url has an extra slash ('/') character which makes the links fail. E.g. the link `[this](/)` expands to `https://try.gitea.io//hans/w00t//`. When the page is saved, the link correctly expands to `https://try.gitea.io/hans/w00t//`
GiteaMirror added the type/bug label 2025-11-02 03:36:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#787