Skip to content
Snippets Groups Projects
Commit bd26e75f authored by Thanh Dodeur's avatar Thanh Dodeur
Browse files

[IMP] mail: replaces window.location by services.navigate


part of task-2171884

closes odoo/odoo#59947

Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent 6bf6688d
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ class Attachment extends Component {
*/
_onClickDownload(ev) {
ev.stopPropagation();
window.location = `/web/content/ir.attachment/${this.attachment.id}/datas?download=true`;
this.env.services.navigate(`/web/content/ir.attachment/${this.attachment.id}/datas`, { download: 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