Markdown links are truncated (when URL contains number followed by slash) #3162

Closed
opened 2025-11-02 05:02:24 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @nodiscc on GitHub (Apr 9, 2019).

  • Gitea version (or commit ref): 1.7.4
  • Git version: 2.11.0-3
  • Operating system: Debian 9 Stretch
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL - see below)
    • No
    • Not relevant
  • Log gist:

Description

When you paste an URL such as https://www.networkworld.com/article/3239677/the-osi-model-explained-how-to-understand-and-remember-the-7-layer-network-model.html in a Markdown file, and view the rendered markdown/html from the web interface, the generated link URL is truncated when a number followed by a slash is encountered (7/the...).

This happens for files in repositories and on wiki pages.

Examples:

I have looked for something similar at https://github.com/russross/blackfriday/issues but found nothing. Should I report it there?

Screenshots

a

Originally created by @nodiscc on GitHub (Apr 9, 2019). <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.7.4 - Git version: 2.11.0-3 - Operating system: Debian 9 Stretch - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL - see below) - [ ] No - [ ] Not relevant - Log gist: ## Description When you paste an URL such as https://www.networkworld.com/article/3239677/the-osi-model-explained-how-to-understand-and-remember-the-7-layer-network-model.html in a Markdown file, and view the rendered markdown/html from the web interface, the generated link URL is truncated when a number followed by a slash is encountered (`7/the...`). This happens for files in repositories and on wiki pages. Examples: - https://try.gitea.io/nodiscc/test/wiki/Home - https://try.gitea.io/nodiscc/test/src/branch/master/README.md I have looked for something similar at https://github.com/russross/blackfriday/issues but found nothing. Should I report it there? ## Screenshots ![a](https://user-images.githubusercontent.com/3950390/55823394-2112a900-5af1-11e9-9858-8c3d92ab4980.png)
Author
Owner

@nodiscc commented on GitHub (Apr 9, 2019):

Note that this URL is not affected: https://www.cisco.com/c/en/us/about/press/internet-protocol-journal/back-issues/table-contents-53/143-trill.html

a

@nodiscc commented on GitHub (Apr 9, 2019): Note that this URL is not affected: https://www.cisco.com/c/en/us/about/press/internet-protocol-journal/back-issues/table-contents-53/143-trill.html ![a](https://user-images.githubusercontent.com/3950390/55823613-9ed6b480-5af1-11e9-9b1e-461e1a09780f.png)
Author
Owner

@mrsdizzie commented on GitHub (Apr 9, 2019):

This is fixed in master (and release/v1.8), but I think try.gitea.io hasn't been updated in a while for some reason. Particularly, this is initially fixed by #6445

@mrsdizzie commented on GitHub (Apr 9, 2019): This is fixed in master (and release/v1.8), but I think try.gitea.io hasn't been updated in a while for some reason. Particularly, this is initially fixed by #6445
Author
Owner

@nodiscc commented on GitHub (Apr 9, 2019):

Thank you, that was quick!

Duplicate of https://github.com/go-gitea/gitea/issues/4813 and fixed in master.

@nodiscc commented on GitHub (Apr 9, 2019): Thank you, that was quick! Duplicate of https://github.com/go-gitea/gitea/issues/4813 and fixed in master.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3162