fix URL clipping
This commit is contained in:
parent
813299d358
commit
443fee52bb
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,10 @@ class BodyTemplateView(object):
|
|||
class URLGetter(BaseURLGetter):
|
||||
|
||||
def __str__(self):
|
||||
return self.__request.getURL().rstrip('/@@index.html')
|
||||
url = self.__request.getURL()
|
||||
if url.endswith('/@@index.html'):
|
||||
url = url[-len('/@@index.html')]
|
||||
return url
|
||||
|
||||
|
||||
class GenericView(object):
|
||||
|
|
Loading…
Add table
Reference in a new issue