bug(v2): href links in Footer append a leading slash to mailto: links #2568
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
difficulty: starter
Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
help wanted
Asking for outside help and/or contributions to this particular issue or PR.
🐛 Bug Report
Using the preset-classic theme, when you add a link to the
footer
element of thethemeConfig
using anhref
, it automatically appends a leading slash if the content of thehref
doesn't start with anhttp
. This breaksmailto:
links.Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
npx @docusaurus/init@next init my-website classic
docusaurus.config.js
to include amailto:
link in thefooter
element of thethemeConfig
. E.g.yarn start
and click on thefoo@bar.com
link in the footerExpected behavior
When clicking the
foo@bar.com
link, I expected it to open a mail app.Actual Behavior
It actually tries to open
http://<root_url>/mailto:foo@bar.com
.Your Environment
The text was updated successfully, but these errors were encountered: