New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some linkified urls are including the app server name #2496
Comments
What does the markdown says about that? I wouldn't be shocked if |
Cf https://pad.incubateur.net/WK9dDgvlSZSP--G059UVMA?both for a test on another markdown parser (similar behaviour as data.gouv.fr today). |
What's your suggested behaviour BTW? |
the wrong udata/udata/frontend/markdown.py Line 46 in 01534c6
|
should produce
|
Cf https://gist.github.com/abulte/9b4ffe706f4667a13db3265bec14538e So I think the real issue is that we don't add a |
What should it produce then ? |
To be clear, |
but following that logic |
It's not a question of SEO, it's that we shouldn't try to guess if a link is internal or external. If the user wants an external link, she uses |
sorry I rectified my comment above, but ok I get it better now... |
Github behaviour just to compare...
So yes Bleach behaves another way and induce an external url, that is a root cause of our mutual miscomprehension on this matter :) |
It's not Bleach, it's our |
I did an update on a live test => https://www.data.gouv.fr/fr/datasets/bleach-test-002/
|
what confused me was |
In a dataset's text, an url written in a markdown format is transformed into a
<a>
tag but itshref
attribute contains the app server name within the url...You can check an example of this behaviour here => test Bleach dataset
Detailed Description
if you write a text as :
you get on the client side something like :
... which is wrong and not desired behaviour I guess : it shoud not contain
www.data.gouv.fr
beforerte-france-03.com
in thehref
attributePossible Implementation
check PR #2486
The text was updated successfully, but these errors were encountered: