in preview tab only : local link bug #1693

Closed
opened 2025-11-02 04:09:47 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @tst2005 on GitHub (Apr 12, 2018).

  • Gitea version (or commit ref): 1.4.0
  • Git version: (not related)
  • Operating system: (not related)
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

Condition to reproduce:

On my side

I'm using nginx as frontal and gitea as backend.
The bug is only got on local link (not got with an external link).
The bug is only got on the preview tab (when I'm editing a markdown file),
Important: The bug is not got on the final markdown rendered page.

More

My base gitea URL is https://www.mydomain.tld/gitea/
To reproduce:
Edit a markdown file (like the README.md)
Add a link like:

* [foo](bar.md)
  • Click on the Preview tab
  • Check the foo link.
  • You got https://www.mydomain.tld/ gitea/gitea/ myuser/myrepo/src/branch/master/bar.md
  • Instead of https://www.mydomain.tld/ gitea/ myuser/myrepo/src/branch/master/bar.md
Originally created by @tst2005 on GitHub (Apr 12, 2018). - Gitea version (or commit ref): 1.4.0 - Git version: (not related) - Operating system: (not related) - Database: - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes - [x] No : because https://try.gitea.io doesn't have a suffix (it would happen if gitea is on https://gitea.io/try/) - [ ] Not relevant - Log gist: ## Description Condition to reproduce: * a gitea with a suffixed "Application URL" like https://example.net/gitea/ (and not only https://example.net/ ) * Preview a local link on any markdown file On my side I'm using nginx as frontal and gitea as backend. The bug is only got on local link (not got with an external link). The bug is only got on the preview tab (when I'm editing a markdown file), Important: The bug is **not** got on the final markdown rendered page. More My base gitea URL is https://www.mydomain.tld/gitea/ To reproduce: Edit a markdown file (like the README.md) Add a link like: ``` * [foo](bar.md) ``` * Click on the Preview tab * Check the `foo` link. * You got `https://www.mydomain.tld/` ***gitea/gitea/*** `myuser/myrepo/src/branch/master/bar.md` * Instead of `https://www.mydomain.tld/` ***gitea/*** `myuser/myrepo/src/branch/master/bar.md`
Author
Owner

@stale[bot] commented on GitHub (Jan 28, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 28, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@tst2005 commented on GitHub (Jan 29, 2019):

This bug (got in gitea 1.4.3) seems fixed (tested with gitea 1.4.3 and more)

@tst2005 commented on GitHub (Jan 29, 2019): This bug (got in gitea 1.4.3) seems fixed (tested with gitea 1.4.3 and more)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1693