Los títulos en SVG insertados por un componente de tema se sobrescriben con el título de la página después de cambiar de pestaña

Creo que he encontrado un error en Discourse, pero es un poco difícil mostrar una reproducción porque se activa por un componente de tema que aún no está implementado oficialmente en ningún tema.

El componente de tema inserta un SVG que funciona perfectamente, pero después de cambiar de pestaña en el navegador o minimizarlo, todos los títulos del SVG han sido sobrescritos con el título de la página.

SVG antes del cambio de pestaña:

<svg width="62pt" height="250.66666666666666" viewBox="0.00 0.00 62 188" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="translate(4,112) scale(1)">
<polygon fill="white" stroke="transparent" points="-4,4 -4,-112 58,-112 58,4 -4,4"></polygon>
<!-- a -->
<g id="node1" class="node">
<title>a</title>
<ellipse fill="none" stroke="black" cx="27" cy="-90" rx="27" ry="18"></ellipse>
<text text-anchor="middle" x="27" y="-85.8" font-family="Times,serif" font-size="14.00">a</text>
</g>
<!-- b -->
<g id="node2" class="node">
<title>b</title>
<ellipse fill="none" stroke="black" cx="27" cy="-18" rx="27" ry="18"></ellipse>
<text text-anchor="middle" x="27" y="-13.8" font-family="Times,serif" font-size="14.00">b</text>
</g>
<!-- a-&gt;b -->
<g id="edge1" class="edge">
<title>a-&gt;b</title>
<path fill="none" stroke="black" d="M27,-71.7C27,-63.98 27,-54.71 27,-46.11"></path>
<polygon fill="black" stroke="black" points="30.5,-46.1 27,-36.1 23.5,-46.1 30.5,-46.1"></polygon>
</g>
</g>
</svg>

SVG después del cambio de pestaña:

<svg width="62pt" height="250.66666666666666" viewBox="0.00 0.00 62 188" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="translate(4,112) scale(1)">
<polygon fill="white" stroke="transparent" points="-4,4 -4,-112 58,-112 58,4 -4,4"></polygon>
<!-- a -->
<g id="node1" class="node">
<title>First test of the Mange theme - Discourse Development - Graphviz</title>
<ellipse fill="none" stroke="black" cx="27" cy="-90" rx="27" ry="18"></ellipse>
<text text-anchor="middle" x="27" y="-85.8" font-family="Times,serif" font-size="14.00">a</text>
</g>
<!-- b -->
<g id="node2" class="node">
<title>First test of the Mange theme - Discourse Development - Graphviz</title>
<ellipse fill="none" stroke="black" cx="27" cy="-18" rx="27" ry="18"></ellipse>
<text text-anchor="middle" x="27" y="-13.8" font-family="Times,serif" font-size="14.00">b</text>
</g>
<!-- a-&gt;b -->
<g id="edge1" class="edge">
<title>First test of the Mange theme - Discourse Development - Graphviz</title>
<path fill="none" stroke="black" d="M27,-71.7C27,-63.98 27,-54.71 27,-46.11"></path>
<polygon fill="black" stroke="black" points="30.5,-46.1 27,-36.1 23.5,-46.1 30.5,-46.1"></polygon>
</g>
</g>
</svg>

Estaría encantado de reproducir el error en https://try.discourse.org/ o en otro lugar si alguien puede indicarme cómo puedo instalar el componente de tema o insertar el SVG directamente para ver si eso también desencadena el error.

3 Me gusta

Gracias, Magnus. Esto debería estar corregido ahora en FIX: Do not override all title elements with page title · discourse/discourse@5a3350c · GitHub

8 Me gusta

Muchas gracias @pmusaraj. Eso fue súper rápido :smile:.

Estoy en un plan alojado. ¿Cómo/cuándo puedo obtener acceso a la nueva versión?

Ahora funciona bien en mi instancia. :heart:

Me gustaría marcar tu publicación como la solución, pero no parece ser posible. ¿No estás usando el plugin Solved?

1 me gusta

Aquí sí usamos ‘resuelto’, pero no para la categoría de errores.

2 Me gusta

Este tema se cerró automáticamente después de 3 días. Ya no se permiten nuevas respuestas.