[FIX] website: restore the redirect after lang install
Since [1] the redirection supposed to happen after a lang install from the frontend was broken. Indeed, the 'url_return' was moved and used before it is actually set. [1]: https://github.com/odoo/odoo/commit/745ef9de97544d5c1a97e03be67e903feca40c2a Cheers to @jke-be which did the same fix in another branch in parallel. X-original-commit: 74a594bb2e68662b22477fcce24d9620b2dd0b2a Part-of: odoo/odoo#83420
This commit is contained in:
@@ -1944,8 +1944,7 @@
|
||||
<template id="language_selector_add_language">
|
||||
<a t-attf-class="o_add_language d-none #{dropdown and 'd-sm-block dropdown-item' or 'd-sm-inline-block list-inline-item'}"
|
||||
groups="website.group_website_publisher"
|
||||
t-attf-href="/web#action=base.action_view_base_language_install&website_id=#{website.id if website else ''}&url_return=#{url_return}">
|
||||
<t t-set="url_return" t-value="quote_plus(url_for('', '[lang]') + '?' + keep_query())"/>
|
||||
t-attf-href="/web#action=base.action_view_base_language_install&website_id=#{website.id if website else ''}&url_return=#{quote_plus(url_for('', '[lang]') + '?' + keep_query())}">
|
||||
<i class="fa fa-plus-circle"/>
|
||||
<span>Add a language...</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user