-
Notifications
You must be signed in to change notification settings - Fork 422
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
routeUrl helper, merge option not working #2291
Comments
When you use a call expression, there really shouldn't be an options object. Instead |
I'll try it, thanks. I was using a call expression as detailed in the routeUrl helper docs. They should be updated. |
@gmahomarf I'm a bit confused. Does it not work the way I suggested in my comment? If yes, then this is a bug, not a problem with the docs. |
@justinbmeyer just to be clear, you're suggesting I do the following?: <a href="{{routeUrl({page: 'home'}, true)}}"> Link</a> |
@justinbmeyer I ran several tests this morning. Each example has the stache template where routeUrl was used. Below that are values of the arguments sent to the routeUrl helper (see code) and the resulting value for the To avoid cluttering the issue comments, I created a gist with the results: https://gist.github.com/gmahomarf/92d97265694f0c1a77ec I hope this helps |
Any news on this? |
Canjs is not a priority for me this week. I'm working on can-set issues currently. If you want to help fix it, I can pair with you this week and close it out. Otherwise it will probably have to wait until next week. Sent from my iPhone
|
@justinbmeyer For now, I've got my code working as I need it, so this is no longer urgent for me. Ping me whenever you have time to take a look at this, and I'd love to help fix it. Thanks! |
I'm trying to use
{{routeUrl(page='home', true)}}
to change only the page attribute in my route, but it's not working. Debugging shows that when we call the helper @here,params
istrue
andmerge
is theoptions
object, as defined in the stache helpers docs. Shouldn't those arguments be inverted, so that they match the documentation (i.e. all arguments first, then options object with hash)?The text was updated successfully, but these errors were encountered: