Add params: to m.route.Link, fix docs (#2537)
This commit is contained in:
parent
b98ab29efd
commit
3fa1630f91
4 changed files with 38 additions and 4 deletions
|
|
@ -218,7 +218,8 @@ module.exports = function($window, mountRedraw) {
|
|||
child.attrs.onclick = null
|
||||
} else {
|
||||
onclick = child.attrs.onclick
|
||||
href = child.attrs.href
|
||||
// Easier to build it now to keep it isomorphic.
|
||||
href = buildPathname(child.attrs.href, child.attrs.params)
|
||||
child.attrs.href = route.prefix + href
|
||||
child.attrs.onclick = function(e) {
|
||||
var result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue