6f457768a2
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` |
||
---|---|---|
.. | ||
api | ||
apps | ||
config | ||
controllers | ||
data | ||
email-templates | ||
errors | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
routes | ||
storage | ||
utils | ||
views | ||
filters.js | ||
ghost-server.js | ||
index.js | ||
mail.js | ||
require-tree.js | ||
update-check.js | ||
xmlrpc.js |