Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Shorting external url

Started by Muut Archive 10 years ago · 2 replies · 570 views
10 years ago

Hi,
Grav is shorting some external urls at my side:

TXT
    [test](https://steamcommunity.com/sharedfiles/filedetails/?id=566885854)
to
    https://steamcommunity.com/sharedfiles/filedetails/
e.G.
[test2](https://steamcommunity.com/id/sicco0803)
is OK

any ideas?

10 years ago

Grav will take HTML attributes in the link and add them to the element on the page. In this case, your link probably looks something like

HTML
<a id="566885854" href="https://steamcommunity.com/sharedfiles/filedetails/">test</a>

https://learn.getgrav.org/content/linking#pass-through-supported-attributes

That link suggests that there is someway to avoid this behavior, but I don't think the docs are correct.

10 years ago

U are right, result is

HTML
<p><a href="https://steamcommunity.com/sharedfiles/filedetails/"" id="566885854"">test</a></p>

fixed with direct included html:

HTML
<a href="https://steamcommunity.com/sharedfiles/filedetails/?id=566885854">test4</a>

thx

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago