0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/unit/middleware
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
..
api Improved version match logic (#8922) 2017-08-22 10:59:01 +01:00
cache-control_spec.js
ghost-locals_spec.js
serve-favicon_spec.js 🎨 Move scheduling and storage in adapters/ (#8435) 2017-05-15 12:52:01 +02:00
serve-public-file_spec.js
static-theme_spec.js
theme-handler_spec.js
uncapitalise_spec.js 🎨 settings inconsistency (#8381) 2017-04-24 18:41:00 +01:00
url-redirects_spec.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00