[Accessibility] URL Parsing issue when generating links in Issue editor #2049

Closed
opened 2025-11-02 04:22:20 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @ghost on GitHub (Jul 12, 2018).

  • Gitea version (or commit ref): efd202f
  • Git version: n/a
  • Operating system: Stretch
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
    • Not sure, it's not in English at current
  • Log gist: n/a

Description

URLs with id query string parsed into two separate links, example here:
https://git.habd.as/comfusion/after-dark/issues/1#issue-2

See screenshot below. Notice the right hand side of the = is an internal link whereas the rest of the link is expected save for the query string value as exhibited in the above.

Screenshots

screen shot 2018-07-12 at 7 44 34 pm
Originally created by @ghost on GitHub (Jul 12, 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): efd202f - Git version: n/a - Operating system: Stretch - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - [x] Not sure, it's not in English at current - Log gist: n/a ## Description URLs with `id` query string parsed into two separate links, example here: https://git.habd.as/comfusion/after-dark/issues/1#issue-2 See screenshot below. Notice the right hand side of the `=` is an internal link whereas the rest of the link is expected save for the query string value as exhibited in the above. ## Screenshots <img width="747" alt="screen shot 2018-07-12 at 7 44 34 pm" src="https://user-images.githubusercontent.com/440298/42631219-1138fdf0-860c-11e8-96ce-e89be7a07896.png">
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 04:22:20 -06:00
Author
Owner

@davidak commented on GitHub (Jul 16, 2018):

I noticed the same problem with links like: https://medium.com/liberapay-blog/the-second-year-of-liberapay-c017b73c9721

The last part is recognized as commit ID.

@davidak commented on GitHub (Jul 16, 2018): I noticed the same problem with links like: https://medium.com/liberapay-blog/the-second-year-of-liberapay-c017b73c9721 The last part is recognized as commit ID.
Author
Owner

@ghost commented on GitHub (Jul 22, 2018):

@davidak just saw your related bug. please let me know if I should close this or, if related, let's link them ☺️

@ghost commented on GitHub (Jul 22, 2018): @davidak just saw your related bug. please let me know if I should close this or, if related, let's link them :relaxed:
Author
Owner

@davidak commented on GitHub (Jul 22, 2018):

@jhabdas i'm not sure which one you mean. feel free to link it when you think it's related. I would not consider my last bugreport about URL detection related. This report is fine.

@davidak commented on GitHub (Jul 22, 2018): @jhabdas i'm not sure which one you mean. feel free to link it when you think it's related. I would not consider my last bugreport about URL detection related. This report is fine.
Author
Owner

@ghost commented on GitHub (Sep 25, 2018):

https://github.com/go-gitea/gitea/issues/4496

@ghost commented on GitHub (Sep 25, 2018): https://github.com/go-gitea/gitea/issues/4496
Author
Owner

@stale[bot] commented on GitHub (Jan 8, 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 8, 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

@stale[bot] commented on GitHub (Feb 22, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Feb 22, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Author
Owner

@ghost commented on GitHub (Feb 22, 2019):

@stale keep

@ghost commented on GitHub (Feb 22, 2019): @stale keep
Author
Owner

@ghost commented on GitHub (Feb 22, 2019):

wow. github is now changing the casing of my text. oof! try sending a message to @stale (all-lower). that can't be good.

@ghost commented on GitHub (Feb 22, 2019): wow. github is now changing the casing of my text. oof! try sending a message to @stale (all-lower). that can't be good.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2049