Get path wir params


about $page->url() I get unfortunately only the url without the parameters. How do I get the complete url including parameters (e.g.;13)?

Thanks a lot + greetings

Hi, could you provide some more context what you want to achieve? do you want to get the current URL with all bells and whistles?

$page->url() just prints the url of the current page object.

With Url::current() you get the current url with params and query strings.