aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

HTML tag "a" with "mailto" generates incorrect URLs

Open 97carmine opened this issue 3 years ago • 5 comments

"mailto" links are incorrect generated.

Source code:

<a href="mailto:John Doe<[email protected]>">[email protected]</a>

Browser HTML:

<a href="/legal_warning/mailto:John Doe<[email protected]>" aria-current="page">[email protected]</a>

aleph --version output:

aleph.js 0.3.0-beta.19
deno 1.17.1
v8 9.7.106.15
typescript 4.5.2

97carmine avatar Feb 13 '22 10:02 97carmine

try to add target="_blank", this will be fixed in future update

ije avatar Feb 13 '22 13:02 ije

Hey @97carmine Can I solve this?

NaincyKumariKnoldus avatar Feb 13 '22 15:02 NaincyKumariKnoldus

As @ije indicated, adding 'target="_blank"' solves the problem even if it is a temporary solution.

@NaincyKumariKnoldus Sure.

97carmine avatar Feb 13 '22 16:02 97carmine

But @97carmine I didn't found this [email protected] anywhere in source code. Can you help me?

NaincyKumariKnoldus avatar Feb 13 '22 17:02 NaincyKumariKnoldus

@NaincyKumariKnoldus It is an example, the error I indicate is that the current path is added in the URL of the attribute "href" when generating the label "a" when using "mailto"

97carmine avatar Feb 13 '22 17:02 97carmine