0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
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
..
adapters 🐛 Fixed post scheduling (#8976) 2017-09-05 19:23:11 +01:00
api Support for attribute-based permissions (#9025) 2017-09-26 18:06:14 +02:00
auth Removed defunct Ghost OAuth code (#9014) 2017-09-18 13:01:58 +01:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
data/importer 🎨 Support LTS imports (#8498) 2017-06-04 11:53:00 +02:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
metadata 🐛 Fixed author helper not returning the correct url (#9102) 2017-10-05 13:50:55 +02:00
middleware Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
models/base 🎨 change last_login to last_seen (#8259) 2017-04-05 20:45:55 +01:00
models_plugins Support filtering based on primary_tag (#9124) 2017-10-10 14:07:44 +02:00
permissions Permissions: minor refactors (#9104) 2017-10-05 21:01:34 +02:00
server_helpers 🐛 Fixed author helper not returning the correct url (#9102) 2017-10-05 13:50:55 +02:00
settings 🐛 fix settings cache (#8506) 2017-06-04 17:52:22 +07:00
sitemap 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
themes Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
utils Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
admin_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
apps_filters_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
apps_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
errors_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
exporter_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
filters_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
ghost_sdk_spec.js 🐛 Fixed api url for the ghost sdk (#9013) 2017-09-18 16:28:22 +01:00
migration_fixture_utils_spec.js Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
migration_spec.js Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
rss_spec.js Removed hardcoded url structures from RSS (#9113) 2017-10-09 16:08:53 +02:00
server_helpers_index_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
server_helpers_template_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
server_utils_spec.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
slack_spec.js 📖 new default post content (#8548) 2017-06-08 16:36:14 +01:00
social-urls_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
utils_pipeline_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
validation_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
xmlrpc_spec.js 📖 new default post content (#8548) 2017-06-08 16:36:14 +01:00