Ghost/core/server/data
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
..
db Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
export Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
import deps: bluebird@3.1.2 2016-03-01 14:47:23 -06:00
importer Harvest server side strings 2015-12-19 12:12:16 +01:00
meta Clean up paginated URL generation 2016-03-20 22:35:00 +00:00
migration Merge pull request #6599 from ErisDS/migrations-split 2016-03-15 13:47:44 +01:00
schema Merge pull request #6599 from ErisDS/migrations-split 2016-03-15 13:47:44 +01:00
validation Harvest server side strings 2015-12-19 12:12:16 +01:00
xml Fix cache-control header for sitemaps 2016-01-25 17:56:05 +00:00
timezones.json Including timezones API in configuration endpoint 2016-02-24 16:44:01 +02:00