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

Abierto
#427 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Área
frontend, web-dev

Línea de trabajo

Reproduce la redirección de la nota publicada en https://hackmd.io/@Partheo/spriting/, centrándote en la línea 72, * [/tg/station](https://github.com/tgstation/tgstation). Compara los enlaces de listas con viñetas con los enlaces de listas numeradas en las notas publicadas y rastrea cómo se añade la URL a la ruta. La tarea estará terminada cuando las notas publicadas con URLs en elementos con viñetas se carguen normalmente sin la redirección errónea.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
40
Forks
9
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hackmdio/hackmd-io-issues

Todos los issues de hackmdio/hackmd-io-issues

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.