8000 Don't use multilingual URLs on the welcome template redirect by edevil · Pull Request #6239 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

Don't use multilingual URLs on the welcome template redirect #6239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Not everyone uses multilingual URLs.
  • Loading branch information
edevil committed Jan 16, 2018
commit ca28ade83700d6a0f1247107db58f145aeef560d
6 changes: 1 addition & 5 deletions cms/templates/cms/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ <h2 class="cms-hidden">{% trans "Installation Notes" %}</h2>
}
});
{% else %}
{% if LANGUAGE_CODE %}
window.location.href = '{% url "admin:login" %}?next=/{{ LANGUAGE_CODE }}/?{{ cms_edit_on }}';
{% else %}
window.location.href = '{% url "admin:login" %}?next=/?{{ cms_edit_on }}';
{% endif %}
window.location.href = '{% url "admin:login" %}?next=/?{{ cms_edit_on }}';
{% endif %}
</script>
{% endlanguage %}
Expand Down
0