From 219b513ac537bc29baa942aff7012a92886422c2 Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Sun, 3 Nov 2019 17:29:09 -0500 Subject: [PATCH] hotfix: server redirect of man.dvc.orl/import-url (2) --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index c6147f2d1d..8b0ece3e75 100644 --- a/server.js +++ b/server.js @@ -34,7 +34,7 @@ app.prepare().then(() => { } else if (req.headers.host === 'man.dvc.org') { // man.dvc.org/{cmd} -> dvc.org/doc/command-reference/{cmd} let normalized_pathname = - ['/get-url', '/import-url'].indexOf(pathname) >= 0 + ['/get-url', '/import-url'].indexOf(pathname) < 0 ? pathname.replace('-', '/') : pathname const doc_pathname = '/doc/command-reference' + normalized_pathname