How do you echo out current URL in Cake\'s view?
Getting current URL for CakePHP 3.x ?
In your layout :
request->here();
$canonical = $this->Url->build($here, true);
?>
You will get the full URL of the current page including query string parameters.
e.g. http://website.example/controller/action?param=value
You can use it in a meta tag canonical if you need to do some SEO.