Before this commit and most likely since commit [1], the "Open in new window" option of link would not persist through editions. Steps to reproduce: - Create a link in the website builder - Set its "Open in new window" property to true - Save, and see that it works as expected - Now enter edit mode again, the toggle will be off and not on as it should be since the `target="_blank"` was correctly added. For easy of debugging and understanding, you can just grep this line ```js this.initialNewWindow = this.initialNewWindow || this.linkEl.target === '_blank'; ``` [1]: https://github.com/odoo/odoo/commit/d7245d2abf528d093226c80e40975e63d61e8997# opw-3781477 closes odoo/odoo#156739 X-original-commit: 5ea2e015a8faed502c378d4e5042f8a0cf50cbf9 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Romain Derie (rde) <rde@odoo.com>