diff options
| author | Dhruv Patel <dhp@odoo.com> | 2020-06-08 07:26:04 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-06-23 09:46:33 +0000 |
| commit | 9e60a82680259cd5125738da21fb9e4b82eabc34 (patch) | |
| tree | f656f828b56ff4801356df66d53de86fd7b0f9e4 /addons/web/views | |
| parent | fdf381e1b67eddda582e1387c56c56f1df4f33c1 (diff) | |
[FIX] web: crash when multiple occurrences of cids in url
This error occurs for instance when your session expires and you
reload. At this point, the hash part of the url is duplicated and
an error is raised when the webclient tries to parse 'cids' part.
The hash part of the url should not be duplicated, but whatever the
url hash, the client should not crash either.
This commit prevents the hash part from being duplicated, and the
client from crashing when there are several occurrences of 'cids'.
closes odoo/odoo#52599
Task: 2267401
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/views')
| -rw-r--r-- | addons/web/views/webclient_templates.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index caa6f06a2c5..4465956061e 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -554,7 +554,7 @@ <template id="web.login" name="Login"> <t t-call="web.login_layout"> - <form class="oe_login_form" role="form" t-attf-action="/web/login" method="post" onsubmit="this.action = this.action + location.hash"> + <form class="oe_login_form" role="form" t-attf-action="/web/login" method="post" onsubmit="this.action = '/web/login' + location.hash"> <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/> <div class="form-group field-db" t-if="databases and len(databases) > 1"> |
