I am currently usiing Mezzio and having an issue using url helpers while trying to create canonical links for a blog page (hopefully can explain this properly):
I have the following code in the view:
‘rel’ => ‘canonical’,
‘href’ => $this->serverUrl($this->url(‘blog.list’))
The following route:
The url works fine when visiting /blog/ and returns /blog/, however when visting /blog/category/videos the url returned in the helper is /blog/category/videos and should return /blog/
It’s as if the helpers are automatically populating the route params somehow? Is this a bug or intended functionality?