diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/meetingtools/apps/auth/views.py | 2 | ||||
-rw-r--r-- | src/templates/apps/room/launch.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py index cef309b..daeb09d 100644 --- a/src/meetingtools/apps/auth/views.py +++ b/src/meetingtools/apps/auth/views.py @@ -158,6 +158,8 @@ def accounts_login_federated(request): # connect_api.add_remove_member(principal.get('principal-id'),group.get('principal-id'),True) next = request.session.get("after_login_redirect", None) + if not next and request.GET.has_key('next'): + next = request.GET[''] if next is not None: return redirect_to(next) else: diff --git a/src/templates/apps/room/launch.html b/src/templates/apps/room/launch.html index cc80ca6..970df96 100644 --- a/src/templates/apps/room/launch.html +++ b/src/templates/apps/room/launch.html @@ -21,7 +21,7 @@ <br/> <ul class="ilist"> {%if room.nusers == 0 %} - <li class="button"><a href="{% prefix %}/promote/{{room.id}}">Enter as Host</a></li> + <li class="button"><a href="{% prefix %}/accounts/login-federated?next={% prefix %}/promote/{{room.id}}">Enter as Host</a></li> {% endif %} <li class="button"><a href="{% prefix %}/launch/{{room.id}}">Enter</a></li> </ul> |