diff options
| -rw-r--r-- | js/redirect.js | 10 | 
1 files changed, 6 insertions, 4 deletions
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;  | 
