Add redir query string to login link

This commit is contained in:
Shane Kilkelly 2016-07-27 13:51:52 +01:00
parent e1af171534
commit 46ec17f2c4
2 changed files with 1 additions and 2 deletions

View file

@ -12,7 +12,7 @@ block content
| #{translate("join_sl_to_view_project")}.
div
| #{translate("if_you_are_registered")},
a(href="/login") #{translate("login_here")}
a(href="/login?redir=#{getReqQueryParam('redir')}") #{translate("login_here")}
else if newTemplateData.templateName !== undefined
h1 #{translate("register_to_edit_template", {templateName:newTemplateData.templateName})}

View file

@ -85,7 +85,6 @@ define [
return addNextMember()
# TODO: double-check if member.type == 'user' needs to be an invite
console.log ">> inviting", member
if member.type == "user"
request = projectInvites.sendInvite(member.email, $scope.inputs.privileges)
else if member.type == "group"