O Discourse codifica fragmentos de URLs coladas

Discourse encodes characters of fragments in pasted URLs.

E.g.
https://gitpod.io/#https://github.com/eclipse-theia/theia
becomes
https://gitpod.io/#https%3A%2F%2Fgithub.com%2Feclipse-theia%2Ftheia

4 curtidas

Let’s see

https://gitpod.io/#https://github.com/eclipse-theia/theia

Dashboard

So you are only referring to oneboxed urls?

4 curtidas

Ah, there are two links. I didn’t noticed. So, yes, only the link in the box is broken.

This appears to be fixed in DEV: Replace custom uri_encode logic with Addressable by cvx · Pull Request #420 · discourse/onebox · GitHub

I’ve added the reported URL to #uri_encode specs.

5 curtidas

Nota: Isso ainda ocorre na versão do Discourse 2.4.0.beta9 (c15d702ae6):

Em uma Mensagem Privada, URLs como https://gitpod.io/#snapshot/abcd-1234 ainda são convertidas incorretamente para https://gitpod.io/#snapshot%2Fabcd-1234.

Notei que o Discourse 2.4.0.beta10 já foi lançado — posso tentar atualizar e ver se isso ajuda.

Acabei de testar em uma mensagem privada e funcionou.

2 curtidas

Este tópico foi automaticamente fechado dois dias após a última resposta. Novas respostas não são mais permitidas.