Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation for UrlHelper (reuse_result_params) #41

Open
sheridans opened this issue May 20, 2020 · 0 comments
Open

Missing documentation for UrlHelper (reuse_result_params) #41

sheridans opened this issue May 20, 2020 · 0 comments
Labels
Bug Something isn't working Documentation

Comments

@sheridans
Copy link

Bug Report

Q A
Version(s) x.y.z

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Documentation
Projects
None yet
Development

No branches or pull requests

2 participants