Minor fix in tgNavUrls.resolve

stable
David Barragán Merino 2014-08-23 22:42:46 +02:00
parent d65fe356f1
commit cc57fe6613
1 changed files with 2 additions and 2 deletions

View File

@ -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]