# HG changeset patch # User rougeronj # Date 1422354016 -3600 # Node ID c73bf54da095a61e54e354c3afa701323e1aa011 # Parent bffe8dfa3a7fa3690f32a9ea5f1637f0cac0a916 minor correction in links for horizontal and vertical shape diff -r bffe8dfa3a7f -r c73bf54da095 src/hdalab/views/profile.py --- a/src/hdalab/views/profile.py Mon Jan 26 17:25:40 2015 +0100 +++ b/src/hdalab/views/profile.py Tue Jan 27 11:20:16 2015 +0100 @@ -162,6 +162,10 @@ switch_shape_url["horiz"] = current_url.replace("&shape=vert", "&shape=horiz") switch_shape_url["circle"] = current_url.replace("&shape=vert", "") else: + #if we generated the renkan from no filter, the url doesn't have any "?" + #we add one to create the links to the other representation + if "?" not in current_url: + current_url += "?" switch_shape_url["horiz"] = current_url + "&shape=horiz" switch_shape_url["vert"] = current_url + "&shape=vert" context["switch_shape_url"] = switch_shape_url