Skip to content

Commit

Permalink
Redirect user back to page after they login
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusselsmark committed Sep 24, 2023
1 parent 88d80cb commit 1766372
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions members/templates/members/activities.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ <h2>Nuværende og kommende aktiviteter</h2>
{% if activity.open_invite %}
<a
class="button-success"
href="{% url 'person_login' %}"
href="{% url 'person_login' %}?next={{request.path}}"
>
Tilmeld
</a>
{% else %}
<a
class="button-success"
href="{% url 'person_login' %}"
href="{% url 'person_login' %}?next={{request.path}}"
>
Opskriv på venteliste
</a>
Expand Down
4 changes: 2 additions & 2 deletions members/templates/members/activity_signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ <h1>{{activity.department.name}}: <small>{{activity.name}}</small></h1>
{% else %}
{% if not family %}
<hr>
<a href="{% url 'person_login' %}">Log ind</a>
eller
<a href="{% url 'person_login' %}?next={{request.path}}">Log ind</a>
eller
<a href="{% url 'account_create' %}">tilmeld dit barn</a>
for at tilmelde dig denne aktivitet.
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion members/templates/members/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{% else %}
<a href="{% url "account_create" %}">Tilmeld barn</a>
<a href="{% url "volunteer_signup" %}">Bliv frivillig</a>
<a id="login-logout" href="{% url 'person_login' %}">Log ind</a>
<a id="login-logout" href="{% url 'person_login' %}?next={{request.path}}">Log ind</a>
{% endif %}
<a href="https://codingpirates.dk" target="_blank">
<img src="{% static "logo.png" %}"/>
Expand Down

0 comments on commit 1766372

Please sign in to comment.