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

Shorting external url

Started by Muut Archive 9 years ago · 2 replies · 390 views
9 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?

9 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.

9 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 Deleted User, 9 years ago
0 1323 9 years ago
Archive · by Muut Archive, 9 years ago
2 919 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2923 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago