Skip to content

Commit

Permalink
server: no need to replace - for / in man. redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Jan 14, 2020
1 parent 5c07821 commit 22a4044
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ app.prepare().then(() => {
// man.dvc.org/{cmd} -> dvc.org/doc/command-reference/{cmd},
res.writeHead(301, {
'Cache-Control': 'no-cache',
Location:
'https://dvc.org/doc/command-reference' + pathname.replace('-', '/')
Location: 'https://dvc.org/doc/command-reference' + pathname
})
res.end()
} else if (/^(code|data|remote)\.dvc\.org$/.test(req.headers.host)) {
Expand Down

0 comments on commit 22a4044

Please sign in to comment.