diff options
| author | Gitoffthelawn <Gitoffthelawn@users.noreply.github.com> | 2020-01-02 16:21:08 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-02 16:21:08 -0800 | 
| commit | c3aa529f6923972054871ca0b5e48179acdfc625 (patch) | |
| tree | c8c6626982dc27bbdb2e4a104160229f0b436145 | |
| parent | a0d24972c2ed27335df6e4c3b3ecc1116f78d7ed (diff) | |
Removed code preventing saving many types of valid redirects
| -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; | 
