commit/galaxy-central: natefoo: If the referer is the logout page, redirect to base analysis interface after login instead of back to the logout page. Fixes issue #486.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/52b59886df27/ changeset: r5188:52b59886df27 user: natefoo date: 2011-03-07 19:30:29 summary: If the referer is the logout page, redirect to base analysis interface after login instead of back to the logout page. Fixes issue #486. affected #: 1 file (82 bytes) --- a/lib/galaxy/web/controllers/user.py Mon Mar 07 11:43:51 2011 -0500 +++ b/lib/galaxy/web/controllers/user.py Mon Mar 07 13:30:29 2011 -0500 @@ -354,7 +354,7 @@ else: refresh_frames = [ 'masthead', 'history' ] message, status, user, success = self.__validate_login( trans, webapp, **kwd ) - if success and referer: + if success and referer and referer != trans.request.base + url_for( controller='user', action='logout' ): redirect_url = referer elif success: redirect_url = url_for( '/' ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket