0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/controllers
Hannah Wolfe 9f9d8b2fec Always use our redirects utility (#9132)
no issue

- This started as an attempt to simplify the admin redirect code
- I realised we were sometimes using utils.redirect301 and sometimes not
- Decided to move this into utils.url as it's more relevant to URL generation
- Unified usage of redirects in the codebase
- Updated tests & ensured we have basic coverage
- rename adminRedirect -> redirectToAdmin
- Tweak method signature, fix channel edit redirects
- Tests: Optimised test descriptions for url-redirects_spec.js
- ensure caching works as expected
2017-10-12 14:36:50 +02:00
..
frontend Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
index.js Splitted preview & single controllers from index (#9121) 2017-10-09 13:56:44 +02:00
preview.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
single.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00