Skip to content

Commit

Permalink
Merge pull request #968 from CodingPirates/redirect-user-after-login
Browse files Browse the repository at this point in the history
Redirect bruger efter login
  • Loading branch information
rasmusselsmark authored Sep 24, 2023
2 parents 88d80cb + 1766372 commit 2d1e581
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 2d1e581

Please sign in to comment.