Parenthesis in a link produces a wrong link

I use Kirby 2.1.1 and the panel 2.1.1.

I want to build a link to “https://de.wikipedia.org/wiki/Angeln_(Fischfang)” with the text: “Angeln_(Fischfang)”:

My 1. try:
(link: https://de.wikipedia.org/wiki/Angeln_(Fischfang) text: Angeln_(Fischfang))
My 2. try:
(link: https://de.wikipedia.org/wiki/Angeln_\(Fischfang\) text: Angeln_\(Fischfang\))
My 3. try:
(link: https://de.wikipedia.org/wiki/Angeln_(Fischfang\) text: Angeln_(Fischfang\))
My 4. try:
(link: https://de.wikipedia.org/wiki/Angeln_\(Fischfang) text: Angeln_\(Fischfang))

Nothing works, the first closing parenthesis ends the link generation. The closing parenthesis is always missing in the link. The text field is always ignored.

Something is wrong.

Parentesis insite kirbytags are not working yet (see: Way to Use Parenthesis inside Kirbytag?)

But for your case you can use the Markdown way to make links:

[Angeln_(Fischfang)](https://de.wikipedia.org/wiki/Angeln_(Fischfang))
1 Like

Thank you very much!

Hint:
we need the part “[...]” to get the closing parenthesis in the link!

I have found a more normal way.

(link: https://de.wikipedia.org/wiki/Angeln_(Fischfang) text: Angeln_(Fischfang))
1 Like

The last way is not correct!

I have found that ONLY the URL (href) has to be coded following RFC 3986.

Therefore is should be coded in a textarea field of the panel like

(link: https://de.wikipedia.org/wiki/Angeln_%28Fischfang%29 text: Angeln_(Fischfang))

which reders to

<a href="https://de.wikipedia.org/wiki/Angeln_%28Fischfang%29">Angeln_&#x28;Fischfang&#x29;</a>

Hint:
Look for the different coding, e.g. “%28” and “&#x28;” for the “(”.

Good luck!

Don’t work for me. &something; is rendered to &amp;something; all the time.

Hint:
Use kirbytext or kirbytextraw to render your field content, but not html.

Good luck!