Bullet list items with links cause redirect error appending URLs to path when in Book Mode

Offen
#427 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Bereich
frontend, web-dev

Rechercherichtung

Reproduzieren Sie die Weiterleitung aus der veröffentlichten Notiz unter https://hackmd.io/@Partheo/spriting/ und konzentrieren Sie sich auf Zeile 72, * [/tg/station](https://github.com/tgstation/tgstation). Vergleichen Sie Links in Aufzählungslisten mit Links in nummerierten Listen in veröffentlichten Notizen und verfolgen Sie, wie die URL an den Pfad angehängt wird. Als erledigt gilt die Aufgabe, wenn veröffentlichte Notizen mit URLs in Aufzählungspunkten normal geladen werden, ohne die fehlerhafte Weiterleitung.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Is this a hackmd.io issue?

Yes, the bug happens on https://hackmd.io

What's the problem

Notes that contain a bulleted list * or - that have a link somewhere in that line will cause the page to load with a broken redirect, which breaks the page entirely (at least on Firefox)

Current behaviour

I have a published note at https://hackmd.io/@Partheo/spriting/ that has this issue. Loading this page will send you to https://hackmd.io/@Partheo/spriting/https%3A%2F%2Fgithub.com%2Ftgstation%2Ftgstation instead, which doesn't work. This occurs on the first bulleted link in the note, in this case the problematic line is line 72, which is * [/tg/station](https://github.com/tgstation/tgstation)
Changing the * to a - makes no difference. This bug does not occur with 1. 2. 3. numbered lists.
Deleting the link simply leads the next bulleted link in the document to cause the error. It's not specific to that link in particular.

This also occurs on Firefox on my phone, and on the Edge browser on PC. It is also breaking the fetched information that google gets when the note shows up in search results, so this is definitely an error on HackMD's end.

Reproduction:
Publish a note with a bulleted list somewhere in it
Place any URL in the bulleted list
Try loading the note in its published form
Observe odd redirect

Expected behaviour

My note loaded fine a couple months ago. This seems like a recent problem.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
40
Forks
9
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus hackmdio/hackmd-io-issues

Alle Issues in hackmdio/hackmd-io-issues

Ähnliche Issues

Weitere Issues zu Web Dev

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.