Skip to content

Commit 91a8b6f

Browse files
committed
hotfix for broken url handler
1 parent 2741d8b commit 91a8b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get(self, path):
9494
try:
9595
if os.path.isdir(os.path.join(SOURCE_PATH, 'en', path)):
9696
# Make sure the directory ends with a /, as required by devsite
97-
if not path.endswith('/'):
97+
if len(path) > 0 and not path.endswith('/'):
9898
redirectTo = '/web/' + path + '/'
9999
logging.info('301 ' + redirectTo)
100100
self.redirect(redirectTo, permanent=True)

0 commit comments

Comments
 (0)