cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject docs commit: Fixing bug with 404 not finding edge for /latest URLs.
Date Tue, 03 Nov 2015 22:35:10 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/master b2961ba0e -> 91ad865c7


Fixing bug with 404 not finding edge for /latest URLs.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/91ad865c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/91ad865c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/91ad865c

Branch: refs/heads/master
Commit: 91ad865c7bdf8799804c0e9d6cf287664206ee8d
Parents: b2961ba
Author: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Authored: Tue Nov 3 14:35:03 2015 -0800
Committer: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Committed: Tue Nov 3 14:35:03 2015 -0800

----------------------------------------------------------------------
 www/static/js/404.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/91ad865c/www/static/js/404.js
----------------------------------------------------------------------
diff --git a/www/static/js/404.js b/www/static/js/404.js
index eb1b9b9..c5fcc73 100644
--- a/www/static/js/404.js
+++ b/www/static/js/404.js
@@ -27,7 +27,7 @@
     }
 
     function getEdgeURL(url) {
-        return url.replace(/docs\/(..)\/([\d\.edge]+)/, 'docs/$1/edge');
+        return url.replace(/docs\/(..)\/([\d\.]+|latest|edge)/, 'docs/$1/edge');
     }
 
     function getRootURL(url) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message