Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

URLs marked as code are rendered as links. How to troubleshoot?

Solved by Karmalakas View solution

Started by Marco Cevoli 5 years ago · 3 replies · 362 views
5 years ago

Hi,

on this page https://qabiria.com/it/risorse/blog/come-tradurre-un-sito-realizzato-con-wordpress

I have a few URLs escaped as code with backticks, like this:

TXT
...`it.name.com\`in italiano...

However, when I visit the page the links are shown as code just for a second and afterwards rendered as links. I don't know whether this depends on Grav configuration, the theme or the browser. I discarded the configuration, because I already have Auto URL links set to disabled (see https://i.imgur.com/UDegNj7.png)
and the same behaviour appears on Edge and Chrome (so apparently not a browser).

I also thought it was a Markdown extra thing, but disabling that option doesn't change it.

I don't know how to stop this behaviour, nor how to troubleshoot it.

Any help will be appreciated.

Kind regards,
Marco

5 years ago

I see source looks fine

HTML
<li><...> (per esempio: <code>name.com</code> <...>, <code>it.name.com</code> in italiano, <code>de.name.com</code> in tedesco, ecc.)</li>
<li><...> (ad esempio: <code>name.com</code> mostra il sito in inglese, <code>name.com?lang=de</code> in tedesco, <code>name.com?lang=it</code> in italiano, ecc.)</li>
<li><...> <code>name.com</code> per l’inglese, <code>name.com/de/</code> per il tedesco, <code>name.com/it/</code> per l’italiano, ecc.</li>

So my bet is some browser default setting maybe. Edge is also based on Chromium, so no wonder it behaves the same. What about FF or Safari? So Safari behaves the same

5 years ago Solution

You use Disqus for your comments and most likely some JS it uses messes up the content too. Check this article.

Noticed, that links in your page have vglink class and source doesn't - that was the starter point. At first I thought it's some browser feature, but then figured all browsers maybe wouldn't do this and also your links have weird HTML structure. That's when I figured this has to be some JS.

5 years ago

Unchecking the checkbox mentioned in the link did the trick. Thanks a lot. I knew it was something "on top of Grav", but couldn't find out what... 🙂

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 101 16 hours ago
General · by pamtbaau, 22 hours ago
1 68 21 hours ago
General · by Andy Miller, 1 day ago
0 53 1 day ago
General · by Marcel, 12 months ago
6 361 5 days ago
General · by Duc , 6 days ago
3 49 6 days ago