0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test
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 Add view post link on published and updated posts 2014-12-15 12:18:47 +00:00
functional [API] Retrieve next and previous post 2015-01-13 12:49:16 +00:00
integration Merge pull request #4831 from jaswilli/edit-user 2015-01-23 22:55:08 +01:00
unit Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
utils Merge pull request #4772 from ekulabuhov/4262_NextPrevPostWIP 2015-01-14 10:32:07 +01:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00
blanket_coverage.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00