We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2741d8b commit 91a8b6fCopy full SHA for 91a8b6f
appengine_main.py
@@ -94,7 +94,7 @@ def get(self, path):
94
try:
95
if os.path.isdir(os.path.join(SOURCE_PATH, 'en', path)):
96
# Make sure the directory ends with a /, as required by devsite
97
- if not path.endswith('/'):
+ if len(path) > 0 and not path.endswith('/'):
98
redirectTo = '/web/' + path + '/'
99
logging.info('301 ' + redirectTo)
100
self.redirect(redirectTo, permanent=True)
0 commit comments