0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/test/unit/server_helpers
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
..
asset_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
author_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
body_class_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
content_spec.js Update downsize node module. Small test updates. 2014-11-30 20:49:36 -08:00
date_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
encode_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
excerpt_spec.js Test update to handle downsize improvements 2014-12-14 23:37:00 +00:00
foreach_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
ghost_foot_spec.js Code Injection - adds perms, shortcuts, icon, flag 2014-12-04 13:34:44 +00:00
ghost_head_spec.js Code Injection - adds perms, shortcuts, icon, flag 2014-12-04 13:34:44 +00:00
ghost_script_tags_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
has_spec.js Fix has helper tag matching 2015-01-09 21:52:23 +00:00
image_spec.js Change url and image into synchronous helpers 2014-12-29 18:44:15 +00:00
is_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
meta_description_spec.js Updated meta helpers to use tag meta data if present 2014-12-21 11:39:49 +00:00
meta_title_spec.js Updated meta helpers to use tag meta data if present 2014-12-21 11:39:49 +00:00
page_url_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
pagination_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
plural_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
post_class_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
tags_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
title_spec.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00
url_spec.js Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
utils.js Refactor helpers & tests into individual files 2014-10-14 22:52:40 +02:00