|
@@ -68,6 +68,11 @@ class HydeRequestHandler(SimpleHTTPRequestHandler): |
|
|
if isinstance(deployed, Folder): |
|
|
if isinstance(deployed, Folder): |
|
|
node = site.content.node_from_relative_path(path) |
|
|
node = site.content.node_from_relative_path(path) |
|
|
res = node.get_resource('index.html') |
|
|
res = node.get_resource('index.html') |
|
|
|
|
|
elif hasattr(site.config, 'urlcleaner') and hasattr(site.config.urlcleaner, 'strip_extensions'): |
|
|
|
|
|
for ext in site.config.urlcleaner.strip_extensions: |
|
|
|
|
|
res = site.content.resource_from_relative_deploy_path(path + '.' + ext) |
|
|
|
|
|
if res: |
|
|
|
|
|
break |
|
|
else: |
|
|
else: |
|
|
res = site.content.resource_from_relative_deploy_path(path) |
|
|
res = site.content.resource_from_relative_deploy_path(path) |
|
|
|
|
|
|
|
|