Commit 2cb57a9a authored by Pascal's avatar Pascal
Browse files

fix page path

parent 794f8ec0
......@@ -57,6 +57,7 @@ class AdminExtraPlugin(Plugin):
def setup_blueprint():
app = current_app
app.register_blueprint(utilsbp)
# only if no help pages
if help_dir is not None:
self.add_button(help_dir, 'help', '?', index=0 )
else:
......
......@@ -14,7 +14,7 @@
{% with prefix = '/admin-pages' %}
{% for page in site.get(prefix).children.include_undiscoverable(true) %}
{{ page }}
<li><a href="{{ page.path }}">{{ page.title }}</a></li>
<li><a href="{{ page.path }}/">{{ page.title }}</a></li>
<li><a href="../{{ page.path[1:] }}">{{ page.title }}</a></li>
<li><a href="{{ page.path[13:] }}">{{ page.title }}</a></li>
<li><a href="./{{ page.path[13:] }}">{{ page.title }}</a></li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment