mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
FIX Ensure mailto links work as expected.
This commit is contained in:
parent
6fe74b1fd8
commit
12a1d999ed
@ -41,6 +41,15 @@ const rewriteLink = (
|
||||
const currentNode = getCurrentNode();
|
||||
const version = getCurrentVersion();
|
||||
|
||||
// mailto links
|
||||
if (href.startsWith('mailto:')) {
|
||||
return createElement(
|
||||
'a',
|
||||
{ href },
|
||||
domToReact(children, parseOptions)
|
||||
);
|
||||
}
|
||||
|
||||
// hash links
|
||||
if (href.startsWith('#')) {
|
||||
return createElement(
|
||||
|
Loading…
Reference in New Issue
Block a user