From c3aa529f6923972054871ca0b5e48179acdfc625 Mon Sep 17 00:00:00 2001 From: Gitoffthelawn Date: Thu, 2 Jan 2020 16:21:08 -0800 Subject: Removed code preventing saving many types of valid redirects --- js/redirect.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'js/redirect.js') diff --git a/js/redirect.js b/js/redirect.js index 23ae409..65d6132 100644 --- a/js/redirect.js +++ b/js/redirect.js @@ -156,10 +156,12 @@ Redirect.prototype = { return; } - if (match.isMatch && !match.redirectTo.match(/^https?\:\/\//)) { - this.error = 'The redirect result must start with http:// or https://, current result is: "' + match.redirectTo + "."; - return; - } + //Commented out because this code prevents saving many types of valid redirects. + //if (match.isMatch && !match.redirectTo.match(/^https?\:\/\//)) { + // this.error = 'The redirect result must start with http:// or https://, current result is: "' + match.redirectTo; + // return; + //} + if (!match.isMatch) { this.error = 'The include pattern does not match the example url.'; return; -- cgit v1.2.3