Skip to content

Commit 2cfcb55

Browse files
Maledongfhemberger
Maledong
authored andcommitted
[Fix] Fix typo errors (#1703)
[Senario] Someone is now accessing the home page with a root path `/` ( Such as `https://nodejs.org/`): The current is now guiding you to an English page. Now I guide you to a page where you like according to your local system language from `accept-language`, which looks better and more friendly. [Notices] Please run `npm i` to install a 3-rd party `accept-language` before you run or deploy this.
1 parent 312ea8b commit 2cfcb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const layouts = chokidar.watch(path.join(__dirname, 'layouts'), opts)
3636
const statics = chokidar.watch(path.join(__dirname, 'static'), opts)
3737

3838
// Redirect mechanism meant as a fix for languages where some pages
39-
// has not translated yet, therefore redirect to the english equivalent,
39+
// have not been translated yet, therefore redirect to the english equivalent,
4040
// which isn't the correct language, but better than a 404-page
4141
function redirectToEnglishUrl (req, res) {
4242
return () => {

0 commit comments

Comments
 (0)