Plink appending URI so presenter fails

sjiamnocna
Member | 28
+
0
-

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

m.brecher
Generous Backer | 714
+
0
-

The template is using plink.

Its difficult to answer, would it be possible to send corresponding code samples ?

sjiamnocna
Member | 28
+
0
-
                    <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)

David Grudl
Nette Core | 8082
+
+1
-

Are you able to prepare a minimal code repository?

sjiamnocna
Member | 28
+
0
-

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)