mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00: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 currentNode = getCurrentNode();
|
||||||
const version = getCurrentVersion();
|
const version = getCurrentVersion();
|
||||||
|
|
||||||
|
// mailto links
|
||||||
|
if (href.startsWith('mailto:')) {
|
||||||
|
return createElement(
|
||||||
|
'a',
|
||||||
|
{ href },
|
||||||
|
domToReact(children, parseOptions)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// hash links
|
// hash links
|
||||||
if (href.startsWith('#')) {
|
if (href.startsWith('#')) {
|
||||||
return createElement(
|
return createElement(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user