Ghost/core
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
..
client Set 'value' property before a dependent CP is used 2015-01-27 22:23:10 +00:00
server Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
shared Fix footnote handling for n-digit numbers 2015-01-17 14:56:13 +00:00
test Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
index.js Move config module to be instance based and merge bootstrap into config. 2014-08-23 15:54:43 -04:00