0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/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 Brute store error is an internal server error (#9092) 2017-10-04 10:02:22 +01:00
validation Dumped icojs and use image-size for .ico (#8888) 2017-08-17 17:44:05 +01:00
brute.js 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
cache-control.js 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
custom-redirects.js Allow Upload/Download of redirects.json (#9029) 2017-09-21 16:01:03 +01:00
error-handler.js 🐛 Fixed Infinite 404s for images (#8869) 2017-08-10 15:31:52 +02:00
ghost-locals.js
labs.js
log-request.js Added request id header (#9122) 2017-10-09 14:48:32 +02:00
maintenance.js
pretty-urls.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
serve-favicon.js 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
serve-public-file.js 💁🏻 Moveshared/ to server/public (#8273) 2017-04-07 13:21:41 +01:00
static-theme.js New fully-loaded & validated activeTheme concept (#8146) 2017-03-13 21:13:17 +01:00
uncapitalise.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
url-redirects.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00