I have troubles with adding links via panel. I use this approach to create buttons with url link and link text (see below) which I can edit via panel, but the problem is that even though I add different url link via panel it still shows the path to the current (active) page and it doesn’t redirect to proper page after clicking on button. Could someone explain me how it should be done in a correct way?
<a href="<?= $page->url()?>" class="button" role="button"><?= $page->linktext()->html() ?></a>
Thanks! Sorry if it’s a stupid question, but I still struggle a bit with PHP and Kirby.