Plink appending URI so presenter fails
- sjiamnocna
- Member | 28
Hi,
I've upgraded Nette Applications container to PHP8.2 and after some fixes
I have problem with LinkGenerator.
The template is using plink.
From the root it generates normal links like example.com/admin.
But then it appends URI to the original one, so if one clicks on one button
twice it ends with link like “example.com/admin/section/section/” and it
fails because no presenter…
What to do?
How to debug LinkGenerator?
Is there ANY documentation for plink? As google didn't find me any.
Thanks
- sjiamnocna
- Member | 28
<a href="{plink :Account:Dashboard:default}">
<i class="fa fa-dashboard"></i>
<span>Dashboard</span>
</a>
Last edited by sjiamnocna (2023-01-26 19:45)
- sjiamnocna
- Member | 28
Okej, if anyone interested, first arg in
$router->addRoute('...')
didnt start with slash /
, or at least it started to work when
I add it.
Thanks
Last edited by sjiamnocna (2023-02-06 17:38)