Mercurial > libervia-web
comparison src/server/pages.py @ 1041:688b52897ba0
pages: check redirections on getURLByNames
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 24 Jan 2018 09:58:00 +0100 |
parents | 6b906b1f419a |
children | 6b1e1f13a299 |
comparison
equal
deleted
inserted
replaced
1040:90b11cd6f28f | 1041:688b52897ba0 |
---|---|
517 else: | 517 else: |
518 sub_path, current_page = self.getSubPageByName(current_page, page_name) | 518 sub_path, current_page = self.getSubPageByName(current_page, page_name) |
519 path.append(sub_path) | 519 path.append(sub_path) |
520 if page_args: | 520 if page_args: |
521 path.extend([quote(a) for a in page_args]) | 521 path.extend([quote(a) for a in page_args]) |
522 return u'/'.join(path) | 522 return self.host.checkRedirection(u'/'.join(path)) |
523 | 523 |
524 def getChildWithDefault(self, path, request): | 524 def getChildWithDefault(self, path, request): |
525 # we handle children ourselves | 525 # we handle children ourselves |
526 raise exceptions.InternalError(u"this method should not be used with LiberviaPage") | 526 raise exceptions.InternalError(u"this method should not be used with LiberviaPage") |
527 | 527 |