Minor fix in tgNavUrls.resolve
parent
d65fe356f1
commit
cc57fe6613
|
@ -43,9 +43,9 @@ class NavigationUrlsService extends taiga.Service
|
|||
return ctx[match] or "undefined"
|
||||
return url.replace(/(:\w+)/g, replacer)
|
||||
|
||||
resolve: (name, ctx={}) ->
|
||||
resolve: (name, ctx) ->
|
||||
if ctx
|
||||
return @formatUrl(@.urls[name], ctx)
|
||||
return @.formatUrl(@.urls[name], ctx)
|
||||
return @.urls[name]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue