From f7ce5bcdcbcf3ea62f3bf836b343082a91b93437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 4 Oct 2019 21:50:11 +0200 Subject: [PATCH] Fix starts_with to work with https --- docs/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config.php b/docs/config.php index 025e5a9..e13383d 100644 --- a/docs/config.php +++ b/docs/config.php @@ -41,9 +41,9 @@ return [ } }, 'url' => function ($page, $path) { - return starts_with($path, 'http://') ? $path : '/'.trimPath($path); + return (starts_with($path, 'http://') || starts_with($path, 'https://')) ? $path : '/'.trimPath($path); }, 'isUrl' => function ($page, $path) { - return starts_with($path, 'http://'); + return starts_with($path, 'http://') || starts_with($path, 'https://'); }, ];