Ghost/core/server
Marcos Ojeda 6f457768a2 Update urlFor to handle 'nav' contexts
needed for #4852
Before this, calling `{{url}}` with a nav context from #4541 would
output `/`. This adds a check in `urlFor` that looks for keys in a
nav context object, namely `slug`, `current`, `label`, & `url`.

This change allows for a url to pass through if used in a nav context.

* adds `schema.isNav()`
* adds tests to `url_spec.js`
* handles absolute urls correctly even if `absolute=true`
2015-01-31 09:29:53 -08:00
..
api Add cache invalidation header when updating tags 2015-01-27 23:44:31 +00:00
apps
config Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
controllers Use path-match to match routes instead of Router 2015-01-22 19:21:47 +00:00
data Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
email-templates
errors Format database-related error responses 2015-01-21 18:09:09 +00:00
helpers Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
middleware Update dependencies 2014-12-25 00:22:45 +00:00
models Fixup finding user by role name 2015-01-20 18:31:17 +00:00
permissions
routes
storage Add support for importing images 2014-12-21 01:58:35 +00:00
utils
views
filters.js
ghost-server.js Allow socket permissions to be set from config 2014-12-31 15:28:04 +00:00
index.js
mail.js Fix email sending fail when blog title has a comma 2015-01-09 21:34:24 +00:00
require-tree.js
update-check.js
xmlrpc.js