Skip to content

Commit 118e6ae

Browse files
committed
bugfix
1 parent 83126ab commit 118e6ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zndraw/templates/index.jinja2

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
<h3>Share Link</h3>
295295
<code id="share-link-block"></code>
296296
<br />
297-
<a class="btn btn-primary" href="{{ url_for('token', token=token) }}" role="button" id="btnShareLink">Copy
297+
<a class="btn btn-primary" href="{{ url_for('main.token', token=token) }}" role="button" id="btnShareLink">Copy
298298
link to clipboard</a>
299299
{% endif %}
300300
<script>
@@ -304,7 +304,7 @@
304304
).innerHTML = `from zndraw import ZnDraw <br>vis = ZnDraw(url="${window.location.href}", token="{{ token }}")`;
305305
// url but without trailing slash
306306
const url = window.location.href.replace(/\/$/, "");
307-
const target_href = "{{ url_for('token', token=token) }}";
307+
const target_href = "{{ url_for('main.token', token=token) }}";
308308
const full_url = url + target_href;
309309
310310
document.getElementById("share-link-block").innerHTML = full_url;

0 commit comments

Comments
 (0)