You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing documentation for UrlHelper and reuse_result_params - no mention of reuse_result_params in current documentation.
Current behavior
I was looking to generate canonical url's for blog posts, using $this->serverUrl($this->url('blog.list')), the default behaviour is to re-use route params, so URLs were generating route params. Instead of generating '/blog/' I was getting '/blog/category/videos' for example.
I was able to generate the correct URLs using:
$this->serverUrl($this->url('blog.list', [], [], null, ['reuse_result_params' => false]))
How to reproduce
Expected behavior
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
Missing documentation for UrlHelper and reuse_result_params - no mention of reuse_result_params in current documentation.
Current behavior
I was looking to generate canonical url's for blog posts, using $this->serverUrl($this->url('blog.list')), the default behaviour is to re-use route params, so URLs were generating route params. Instead of generating '/blog/' I was getting '/blog/category/videos' for example.
I was able to generate the correct URLs using:
$this->serverUrl($this->url('blog.list', [], [], null, ['reuse_result_params' => false]))
How to reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: