diff -r 51225e522007 -r aec074085a81 src/hdalab/views/profile.py --- a/src/hdalab/views/profile.py Tue Sep 23 15:51:35 2014 +0200 +++ b/src/hdalab/views/profile.py Wed Sep 24 13:07:08 2014 +0200 @@ -121,6 +121,12 @@ form = AuthenticationForm(self.request) context["form"] = form + current_url = self.request.get_full_path() + if "shape=circle" in current_url: + switch_shape_url = current_url.replace("&shape=circle", "") + else: + switch_shape_url = current_url + "&shape=circle" + context["switch_shape_url"] = switch_shape_url return context