diff options
Diffstat (limited to 'js/redirect.js')
-rw-r--r-- | js/redirect.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/redirect.js b/js/redirect.js index b902da2..2800044 100644 --- a/js/redirect.js +++ b/js/redirect.js @@ -158,11 +158,13 @@ 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; - } - if (!match.isMatch) { + //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; } |