Redirect to "user_maps" at login end when window.opener is not accessibile
This is the case for Twitter. We'll try to refactor the process later, but let's make it "acceptable" for now. cf #1097
This commit is contained in:
parent
18232bcad0
commit
50091ec0fa
1 changed files with 5 additions and 2 deletions
|
@ -1,12 +1,15 @@
|
|||
{% load i18n %}
|
||||
<h3>{% trans "You are logged in. Continuing..." %} ({% trans "if this window/tab does not close, you can close it, you are authenticated anyway." %})</h3>
|
||||
<h3>{% trans "You are logged in. Continuing..." %}</h3>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function proceed()
|
||||
{
|
||||
if (window.opener) {
|
||||
if (window.opener && window.opener.umap_proceed) {
|
||||
window.opener.umap_proceed();
|
||||
} else {
|
||||
// Trade off as Twitter does not allow us to access window.opener
|
||||
window.location.href = '{% url "user_maps" request.user.username %}'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue