Skip to content
Snippets Groups Projects
Commit 1a1c4e35 authored by Louis Wicket (wil)'s avatar Louis Wicket (wil)
Browse files

[IMP] mail: keep url params in discuss public view


This commit will change the way URLs are edited in discuss public view
to preserve URL params in the resulting URL.

Context:
In order to avoid leaking invitation links, URLs are modified in discuss
public view, but this can sometimes hide precious information such as
the debug mode from the URL.

closes odoo/odoo#78019

X-original-commit: 0a3b31c6
Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent cbe1e8e5
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ function factory(dependencies) {
});
if (this.isChannelTokenSecret) {
// Change the URL to avoid leaking the invitation link.
window.history.replaceState(window.history.state, null, `/discuss/channel/${this.channel.id}`);
window.history.replaceState(window.history.state, null, `/discuss/channel/${this.channel.id}${window.location.search}`);
}
if (this.channel.defaultDisplayMode === 'video_full_screen') {
await this.channel.toggleCall({ startWithVideo: true });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment