Skip to content

Commit

Permalink
hotfix: server redirect of man.dvc.orl/import-url (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Nov 3, 2019
1 parent 37aab6a commit 219b513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 219b513

Please sign in to comment.