From 008f2397f728804df1bf39ea73ccd25fea50e08f Mon Sep 17 00:00:00 2001 From: Macartur Sousa Date: Mon, 6 Jun 2016 10:17:45 -0300 Subject: [PATCH] Fixed groups link to receive target Signed-off-by: macartur --- src/colab_gitlab/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/colab_gitlab/views.py b/src/colab_gitlab/views.py index 25a5386..941e189 100644 --- a/src/colab_gitlab/views.py +++ b/src/colab_gitlab/views.py @@ -31,12 +31,13 @@ def dispatch(self, request, *args, **kwargs): if self.verify_forbidden_path(self.request): tab = '#gitlab_profile' + target = '&target=gitlab_profile' path = r'/account/{}/edit'.format(self.request.user) if 'groups' in self.request.path: path += '?path={}/'.format(request.path) - return redirect(path+tab) + return redirect(path+target+tab) return super(GitlabProxyView, self).dispatch(request, *args, **kwargs)