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

Multiple path parameters do not get replaced in view url #211

Conversation

pekura
Copy link
Contributor

@pekura pekura commented Nov 12, 2018

Fix for: multiple path parameters do not get replaced in view url #208.

core/src/services/routing.js Outdated Show resolved Hide resolved
core/test/routing.spec.js Show resolved Hide resolved
@@ -123,20 +123,30 @@ const escapeRegExp = string => {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
};

const replaceVars = (viewUrl, params, prefix) => {
const replaceVars = (viewUrl, params, prefix, noParenthesis) => {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@jesusreal jesusreal self-assigned this Nov 13, 2018
@y-kkamil y-kkamil self-assigned this Nov 13, 2018
@kwiatekus kwiatekus merged commit d77cde4 into SAP:master Nov 15, 2018
@pekura pekura deleted the Multiple-path-parameters-do-not-get-replaced-in-view-url branch November 15, 2018 13:05
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
Multiple path parameter replacement in the viewUrl fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants