Mercurial > libervia-web
comparison libervia/server/pages.py @ 1473:b4cead3cea43
pages: fix crash when page is redirected but with different args
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Oct 2021 12:12:25 +0200 |
parents | 83dce05226ac |
children | c669b5bfb8a0 |
comparison
equal
deleted
inserted
replaced
1472:915c7c2f1729 | 1473:b4cead3cea43 |
---|---|
688 url_base = redirect_data[current_hash] | 688 url_base = redirect_data[current_hash] |
689 remaining = args[limit:] | 689 remaining = args[limit:] |
690 remaining_url = "/".join(remaining) | 690 remaining_url = "/".join(remaining) |
691 url = os.path.join("/", url_base, remaining_url) | 691 url = os.path.join("/", url_base, remaining_url) |
692 break | 692 break |
693 else: | |
694 url = os.path.join(self.url, *url_args) | |
693 else: | 695 else: |
694 url = os.path.join(self.url, *url_args) | 696 url = os.path.join(self.url, *url_args) |
695 | 697 |
696 if kwargs: | 698 if kwargs: |
697 encoded = urllib.parse.urlencode( | 699 encoded = urllib.parse.urlencode( |