From d5af210785c3902ffee286dcbfbb7e3ec10bddd4 Mon Sep 17 00:00:00 2001 From: yifang Date: Sun, 2 Jan 2022 09:37:43 +0800 Subject: [PATCH] fix:relative url handle --- resources/gd_custom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/gd_custom.js b/resources/gd_custom.js index aaf0e423..b8ca130f 100644 --- a/resources/gd_custom.js +++ b/resources/gd_custom.js @@ -2,6 +2,10 @@ $(function() { $("a").click(function(event) { var link = $(this).attr("href"); + if(link.indexOf("://")>=0){ + return; + } + var newLink; if (link.startsWith("#")) { newLink = window.location.href + link;