[core] allow relative url in contact link
This commit is contained in:
parent
de05ca448f
commit
6ad54565c5
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function contact_link(?string $contact = null): ?string
|
|||
return "mailto:$text";
|
||||
}
|
||||
|
||||
if (str_contains($text, "/")) {
|
||||
if (str_contains($text, "/") && mb_substr($text, 0, 1) != "/") {
|
||||
return "https://$text";
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue