Skip to content
Snippets Groups Projects
Commit 3f1db239 authored by Rodolpho Lima's avatar Rodolpho Lima
Browse files

[FIX] web_editor: link with @ open new window option

Before this commit, when using the LinkTools (website, mass_mailing),
if an http URL contained a "@" (ex: https://www.youtube.com/@iRopes

),
it got incorrectly recognized as an e-mail URL and the option to open
the link in a new windown was hidden from the UI.

This commit fixes the issue by making the test for e-mail URL slightly
more robust than just checking for the presence of a "@".

task-3356685
opw-3349704

closes odoo/odoo#124110

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent d96442a7
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment