Skip to content

Commit 57b3f7a

Browse files
committed
Merged in [8239] from rjsparks@nostrum.com:\n Adds javascript to return to a page a few seconds after successfully logging out. Fixes ticket ietf-tools#1461.
- Legacy-Id: 8363 Note: SVN reference [8239] has been migrated to Git commit b927da7
1 parent 8e0200a commit 57b3f7a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ietf/templates/registration/logged_out.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ <h1>You have been signed out</h1>
1212
</div>
1313
</div>
1414
{% endblock %}
15+
16+
{% if request.META.HTTP_REFERER %}
17+
{% block scripts %}
18+
$(document).ready( function() {
19+
$("#login-back a").text('You will be returned to the previous page in 5 seconds');
20+
setTimeout(function() {
21+
window.location.replace("{{request.META.HTTP_REFERER}}") ;
22+
}, 5000);
23+
});
24+
{% endblock %}
25+
{% endif %}

0 commit comments

Comments
 (0)