0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit/metadata
Hannah Wolfe 5f2c913fc1 Clean up paginated URL generation
refs #5091, #6612

- unify getNextUrl & getPrevUrl into getPaginatedUrl
- ensure that it can generate a prev, next or exact page no url
- ensure that it can figure out the base url
- use the same code from the page_url helper
- refactor the tests to ensure there's 100% coverage

Following on from #6612, this ensures that pagination always works regardless of whether the channel is default or custom
2016-03-20 22:35:00 +00:00
..
asset_url_spec.js
author_image_spec.js
author_url_spec.js
canonical_url_spec.js
cover_image_spec.js
description_spec.js
excerpt_spec.js
keywords_spec.js
modified_date_spec.js
og_type_spec.js
paginated_url_spec.js Clean up paginated URL generation 2016-03-20 22:35:00 +00:00
published_date_spec.js Strutured data: Slack Unfurls & published_at fix 2016-02-22 01:45:00 +01:00
rss_url_spec.js
schema_spec.js
structured_data_spec.js Strutured data: Slack Unfurls & published_at fix 2016-02-22 01:45:00 +01:00
title_spec.js
url_spec.js