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 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
ghost-locals_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
serve-favicon_spec.js 🎨 Move scheduling and storage in adapters/ (#8435) 2017-05-15 12:52:01 +02:00
serve-public-file_spec.js 💁🏻 Moveshared/ to server/public (#8273) 2017-04-07 13:21:41 +01:00
static-theme_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
theme-handler_spec.js Use "mounting" concept for active theme (#8193) 2017-03-21 10:03:09 +01:00
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