Skip to content

Commit

Permalink
MDL-78408 core: fix restoration of anchor to wantsurl during login
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Jun 7, 2023
1 parent 52a4f2d commit d293744
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/templates/loginform.mustache
Expand Up @@ -116,6 +116,8 @@
<a href="{{signupurl}}" class="sr-only">{{#str}} tocreatenewaccount {{/str}}</a>
{{/cansignup}}
<form class="login-form" action="{{loginurl}}" method="post" id="login">
<input id="anchor" type="hidden" name="anchor" value="">
<script>document.getElementById('anchor').value = location.hash;</script>
<input type="hidden" name="logintoken" value="{{logintoken}}">
<div class="login-form-username form-group">
<label for="username" class="sr-only">
Expand Down

0 comments on commit d293744

Please sign in to comment.