fix(landing): redirect welcome to home

This commit is contained in:
Mrugesh Mohapatra 2019-09-04 18:13:37 +05:30
parent 9ff7bf5801
commit e7c82713e4
2 changed files with 32 additions and 30 deletions

View File

@ -17,25 +17,25 @@ exports[`createRedirects matches the snapshot 1`] = `
/copyright-policy https://news.example.com/copyright-policy 200
/privacy https://news.example.com/privacy-policy 200
/privacy-policy https://news.example.com/privacy-policy 200
/shop https://news.example.com/shop 200
/sponsors https://news.example.com/sponsors 200
/support https://news.example.com/support 200
/shop https://news.example.com/shop 200
/terms https://news.example.com/terms-of-service 200
/terms-of-service https://news.example.com/terms-of-service 200
# applications
/forum/* https://forum.example.com/:splat 200
/news https://news.example.com/ 200
/news/* https://news.example.com/:splat 200
/forum/* https://forum.example.com/:splat 200
# auth redirects
/signin https://api.example.com/signin 200
/signup https://api.example.com/signin 200
/deprecated-signin https://api.example.com/signin 200
/email-signin https://api.example.com/signin 200
/login https://api.example.com/signin 200
/deprecated-signin https://api.example.com/signin 200
/logout https://api.example.com/signout 200
/passwordless-change https://api.example.com/confirm-email 200
/signin https://api.example.com/signin 200
/signup https://api.example.com/signin 200
# certification redirects
/:username/front-end-certification /certification/:username/legacy-front-end 301
@ -45,25 +45,26 @@ exports[`createRedirects matches the snapshot 1`] = `
# unsubscribe redirects
/u/* https://api.example.com/u/:splat 200
/unsubscribe/* https://api.example.com/unsubscribe/:splat 200
/ue/* https://api.example.com/ue/:splat 200
/unsubscribe/* https://api.example.com/unsubscribe/:splat 200
# misc redirects
/agile / 301
/chat https://gitter.im/FreeCodeCamp/FreeCodeCamp 301
/twitch https://twitch.tv/freecodecamp 301
/nonprofits-form / 301
/nonprofits / 301
/Nonprofits / 301
/pmi-acp-agile-project-managers / 301
/pmi-acp-agile-project-managers-form / 301
/stories / 301
/all-stories / 301
/chat https://gitter.im/FreeCodeCamp/FreeCodeCamp 301
/field-guide/* / 301
/how-nonprofit-projects-work / 301
/learn-to-code /learn 301
/map /learn 200
/nonprofit-project-instructions / 301
/how-nonprofit-projects-work / 301
/Nonprofits / 301
/nonprofits / 301
/nonprofits-form / 301
/pmi-acp-agile-project-managers / 301
/pmi-acp-agile-project-managers-form / 301
/stories / 301
/twitch https://twitch.tv/freecodecamp 301
/welcome / 200
"
`;

View File

@ -38,25 +38,25 @@ const template = `
/copyright-policy #{{NEWS}}/copyright-policy 200
/privacy #{{NEWS}}/privacy-policy 200
/privacy-policy #{{NEWS}}/privacy-policy 200
/shop #{{NEWS}}/shop 200
/sponsors #{{NEWS}}/sponsors 200
/support #{{NEWS}}/support 200
/shop #{{NEWS}}/shop 200
/terms #{{NEWS}}/terms-of-service 200
/terms-of-service #{{NEWS}}/terms-of-service 200
# applications
/forum/* #{{FORUM}}/:splat 200
/news #{{NEWS}}/ 200
/news/* #{{NEWS}}/:splat 200
/forum/* #{{FORUM}}/:splat 200
# auth redirects
/signin #{{API}}/signin 200
/signup #{{API}}/signin 200
/deprecated-signin #{{API}}/signin 200
/email-signin #{{API}}/signin 200
/login #{{API}}/signin 200
/deprecated-signin #{{API}}/signin 200
/logout #{{API}}/signout 200
/passwordless-change #{{API}}/confirm-email 200
/signin #{{API}}/signin 200
/signup #{{API}}/signin 200
# certification redirects
/:username/front-end-certification /certification/:username/legacy-front-end 301
@ -66,25 +66,26 @@ const template = `
# unsubscribe redirects
/u/* #{{API}}/u/:splat 200
/unsubscribe/* #{{API}}/unsubscribe/:splat 200
/ue/* #{{API}}/ue/:splat 200
/unsubscribe/* #{{API}}/unsubscribe/:splat 200
# misc redirects
/agile / 301
/chat https://gitter.im/FreeCodeCamp/FreeCodeCamp 301
/twitch https://twitch.tv/freecodecamp 301
/nonprofits-form / 301
/nonprofits / 301
/Nonprofits / 301
/pmi-acp-agile-project-managers / 301
/pmi-acp-agile-project-managers-form / 301
/stories / 301
/all-stories / 301
/chat https://gitter.im/FreeCodeCamp/FreeCodeCamp 301
/field-guide/* / 301
/how-nonprofit-projects-work / 301
/learn-to-code /learn 301
/map /learn 200
/nonprofit-project-instructions / 301
/how-nonprofit-projects-work / 301
/Nonprofits / 301
/nonprofits / 301
/nonprofits-form / 301
/pmi-acp-agile-project-managers / 301
/pmi-acp-agile-project-managers-form / 301
/stories / 301
/twitch https://twitch.tv/freecodecamp 301
/welcome / 200
`;
/* eslint-enable max-len */