I\'m writing a django application with a URL like \'http://localhost/entity/id/?overlay=other_id\'. Where id is the primary key of the particular entity and overlay is an o
Can't you just check for an overlay_id and add it to your url?
overlay_id
redirect_url = reverse( ... ) extra_params = '?overlay=%s' % overlay_id if overlay_id else '' full_redirect_url = '%s%s' % (redirect_url, extra_params) return HttpResponseRedirect( full_redirect_url )