Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Issue links in overview HTML are emitted with an extra quote in href

Aperta
#9,022 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@alexr00 ci sta già lavorando.

Dal 6/10/2026.

  • #9025 di @strawberry-little-bear — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug
  • Extension version: 0.166.1 (current main package.json)
  • VSCode Version: not applicable to the source-level reproduction; the extension declares ^1.141.0
  • OS: Windows 11 (source-level reproduction; the generated HTML is platform-independent)
  • Repository Clone Configuration (single repository/fork of an upstream repository): single repository
  • GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): GitHub.com

Steps to Reproduce:

  1. Open a pull request or issue whose description contains a link to another issue in the same repository, for example https://github.com/microsoft/vscode-pull-request-github/issues/123.
  2. Let the extension convert the description HTML for the issue/PR overview.
  3. Inspect the generated anchor for the issue link.

The issue-link branch in src/github/utils.ts currently returns:

return `href="${(await toOpenIssueWebviewUri(...)).toString()}""`;

That produces an anchor like:

<a href="vscode://github.vscode-pull-request-github/open-issue-webview?..."">#123</a>

The corresponding pull-request branch returns a normally terminated href, so this only affects links converted from /issues/<number> URLs.

The extra quote is parsed as a second, nameless attribute (rather than being part of the href value). The link may still appear to work in some Chromium versions, but the HTML is malformed and can be handled inconsistently by the webview DOM/sanitizer. It also makes the generated markup different from the PR-link path for no functional reason.

The smallest fix appears to be removing the extra " at the end of the issue branch, and adding a regression test around the HTML returned for a same-repository issue link. I have not changed the repository code yet; this report is based on the current main source and a local HTML parsing reproduction.

Lingua principale
TypeScript
Stelle
2.6k
Fork
800
Merge medio
22h 52m
PR unite (30g)
39

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-pull-request-github

Tutte le issue di microsoft/vscode-pull-request-github

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.