The use of dash (-) in repository names breaks cross-referencing in issues #1478

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

Originally created by @djelenc on GitHub (Jan 26, 2018).

  • Gitea version (or commit ref): 82a7b02
  • Git version: ?
  • Operating system: irrelevant
  • Database (use [x]): irrelevant
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes: see below
    • No
    • Not relevant

Description

When you try to cross-reference an issue in a repository whose name contains a dash (`-˙ symbol), the automatic referencing breaks.

See here:

Props to @lafriks for zeroing in the bug.

Originally created by @djelenc on GitHub (Jan 26, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) 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): 82a7b02 - Git version: ? - Operating system: irrelevant - Database (use `[x]`): irrelevant - Can you reproduce the bug at https://try.gitea.io: - [x] Yes: see below - [ ] No - [ ] Not relevant ## Description When you try to cross-reference an issue in a repository whose name contains a dash (`-˙ symbol), the automatic referencing breaks. See here: * [Cross-referencing when dash is used does not work](https://try.gitea.io/ZeroNet/ZeroNet/issues/3#issuecomment-1889) * [Cross-referencing when dash is not used works](https://try.gitea.io/ZeroNet/ZeroNet/issues/3#issuecomment-1906) Props to @lafriks for zeroing in the bug.
GiteaMirror added the type/bug label 2025-11-02 04:02:02 -06:00
Author
Owner

@HenrikBengtsson commented on GitHub (Jan 26, 2018):

UPDATE 2018-01-26: For the issue in this comment, see Issue #3381 instead.

This appears to affect any URLs containing hyphens. For example, in Gitea 1.3.2 the following URL:

  • http://singularity.lbl.gov/install-linux#build-an-rpm-from-source

is rendered as http://singularity.lbl.gov/install-linux#build-an-rpm-from-source. A workaround is to use Markdown links, e.g.

  • [http://singularity.lbl.gov/install-linux#build-an-rpm-from-source](http://singularity.lbl.gov/install-linux#build-an-rpm-from-source)
@HenrikBengtsson commented on GitHub (Jan 26, 2018): UPDATE 2018-01-26: For the issue in this comment, see Issue #3381 instead. This appears to affect any URLs containing hyphens. For example, in Gitea 1.3.2 the following URL: * `http://singularity.lbl.gov/install-linux#build-an-rpm-from-source` is rendered as [http://singularity.lbl.gov/install-linux#build](http://singularity.lbl.gov/install-linux#build-an-rpm-from-source)-an-rpm-from-source. A workaround is to use Markdown links, e.g. * `[http://singularity.lbl.gov/install-linux#build-an-rpm-from-source](http://singularity.lbl.gov/install-linux#build-an-rpm-from-source)`
Author
Owner

@thehowl commented on GitHub (Jan 26, 2018):

That is an entirely different issue: to solve these once and for all, I already opened #3381

@thehowl commented on GitHub (Jan 26, 2018): That is an entirely different issue: to solve these once and for all, I already opened #3381
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1478