Autolinking problem #941

Closed
opened 2025-11-02 03:42:33 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @michaelkuhn on GitHub (Aug 4, 2017).

Description

When using a link that contains something that looks like an issue number, Gitea does not convert the link correctly.

For example, https://pthree.org/2012/04/17/install-zfs-on-debian-gnulinux/ is turned into a link to "issue 17", followed by /install-zfs-on-debian-gnulinux/ (see reproduce link above).

Edit: This is due to IssueFullPattern in markdown.go.

Originally created by @michaelkuhn on GitHub (Aug 4, 2017). - Gitea version (or commit ref): v1.1.0-467-g34df9def - Can you reproduce the bug at https://try.gitea.io: - [x] Yes: https://try.gitea.io/4kr_5fc85lzjshor/4kr_5fc85lzjshor/wiki/Autolink ## Description When using a link that contains something that looks like an issue number, Gitea does not convert the link correctly. For example, `https://pthree.org/2012/04/17/install-zfs-on-debian-gnulinux/` is turned into a link to "issue 17", followed by `/install-zfs-on-debian-gnulinux/` (see reproduce link above). Edit: This is due to `IssueFullPattern` in `markdown.go`.
GiteaMirror added the type/bug label 2025-11-02 03:42:33 -06:00
Author
Owner

@andreynering commented on GitHub (Aug 13, 2017):

Fixed by https://github.com/go-gitea/gitea/pull/2292

@andreynering commented on GitHub (Aug 13, 2017): Fixed by https://github.com/go-gitea/gitea/pull/2292
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#941