fix(redirects): update redirection paths and codes

pull/36639/head
Mrugesh Mohapatra 2019-08-20 00:22:08 +05:30
parent de6f32cd33
commit f0329da61a
2 changed files with 4 additions and 2 deletions

View File

@ -17,11 +17,12 @@ exports[`createRedirects matches the snapshot 1`] = `
/privacy-policy https://news.example.com/privacy-policy 200
/sponsors https://news.example.com/sponsors 200
/support https://news.example.com/support 200
/shop #{{news}}/shop 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
/news https://news.example.com/ 200
/news/* https://news.example.com/:splat 200
/forum/* https://forum.example.com/:splat 200

View File

@ -38,11 +38,12 @@ const template = `
/privacy-policy #{{NEWS}}/privacy-policy 200
/sponsors #{{NEWS}}/sponsors 200
/support #{{NEWS}}/support 200
/shop #{{news}}/shop 200
/shop #{{NEWS}}/shop 200
/terms #{{NEWS}}/terms-of-service 200
/terms-of-service #{{NEWS}}/terms-of-service 200
# applications
/news #{{NEWS}}/ 200
/news/* #{{NEWS}}/:splat 200
/forum/* #{{FORUM}}/:splat 200