Pass next URL to OAuth

This commit is contained in:
Edward Betts 2019-09-27 20:23:01 +01:00
parent 51c245d637
commit 37af9ad1c0
2 changed files with 7 additions and 1 deletions

View file

@ -88,7 +88,7 @@
<div class="alert alert-info mt-4" role="alert">
This tool must be connected with Wikidata to work.
</div>
<p><a href="{{ url_for('start_oauth') }}" class="btn btn-primary btn-lg">Connect with Wikidata</a>
<p><a href="{{ url_for('start_oauth', next=current_url()) }}" class="btn btn-primary btn-lg">Connect with Wikidata</a>
{% endif %}
{% if username %}