fix: Edit button broken url

This commit is contained in:
Dendy 2024-02-24 11:03:36 +01:00
parent a9de529c2b
commit 3e9cfcd7cf
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@
<article> <article>
{% if not edit %} {% if not edit %}
{% if path != '' %} {% if path != '' %}
<a href="{{ path }}?edit">Edit</a> <a href="/{{ path }}?edit">Edit</a>
{% endif %} {% endif %}
{% autoescape false %} {% autoescape false %}
{{ markdown(content, extensions=['extra']) }} {{ markdown(content, extensions=['extra']) }}
{% endautoescape %} {% endautoescape %}
{% else %} {% else %}
<form method="POST" action="{{ path }}"> <form method="POST" action="/{{ path }}">
<textarea id="markdown-textarea" name="text">{{ content }}</textarea> <textarea id="markdown-textarea" name="text">{{ content }}</textarea>
<input type="submit" value="Save"/> <input type="submit" value="Save"/>
<form> <form>