-
Notifications
You must be signed in to change notification settings - Fork 174
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
Multiple path parameters do not get replaced in view url #211
Multiple path parameters do not get replaced in view url #211
Conversation
This reverts commit ec5f47c.
core/src/services/routing.js
Outdated
@@ -123,20 +123,30 @@ const escapeRegExp = string => { | |||
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); | |||
}; | |||
|
|||
const replaceVars = (viewUrl, params, prefix) => { | |||
const replaceVars = (viewUrl, params, prefix, noParenthesis) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If my tests were correct here we are replacing just the second dynamic parameter. If this is true, where are we replacing the first dynamic parameter and why aren´t we replacing all parameters at once in the same place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, it is a bit weird. It comes from a place that needs to get refactored. I created a dedicated issue for that: #213.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain this issue in detail so that we make sure this is fixed in that ticket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is explained in the related issue #213.
Multiple path parameter replacement in the viewUrl fixed.
Fix for: multiple path parameters do not get replaced in view url #208.