The link KirbyTag (link: https://www.google.com/ text: https://www.google.com/) cleans up the URL and outputs <a href="https://www.google.com/">google.com</a>.
Is there a way to disable this behavior to output the full text (https://www.google.com/)?
Not without overriding the link tag, I’m afraid. The shortening happens in the Html::link() method.
So, in the code for the link tag, Html::a() is used to build the link. Inside the a() method, Html::link() is called. So when overriding, don’t use Html::a() but build the link manually.
Although I’m not actually “reusing” the tag since I can’t wrap my head around how to reuse all the other attributes in my new tag without using too many if statements…
guess I could maybe use Html::link inside a preg_replace to replace the “clean” link with the wanted one…? hmmm
(I left out some of the properties, because to lazy to type it all out , and may syntax may not be 100% correct (I hate concatening HTML strings and variables).
…wait, but this solution also returns weird Matrjoschka’d anchor tags <a href="https://www.google.com/" rel="" class="testclass"><a href="https://www.google.com/">https://www.google.com/</a></a>