mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
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` |
||
---|---|---|
.. | ||
server_helpers | ||
apps_spec.js | ||
config_spec.js | ||
error_handling_spec.js | ||
filters_spec.js | ||
frontend_spec.js | ||
importer_spec.js | ||
mail_spec.js | ||
middleware_spec.js | ||
migration_spec.js | ||
permissions_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
showdown_client_integrated_spec.js | ||
showdown_footnotes_spec.js | ||
showdown_ghostGFM_spec.js | ||
showdown_ghostimagepreview_spec.js | ||
showdown_highlight_spec.js | ||
storage_local-file-store_spec.js | ||
xmlrpc_spec.js |