mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
🐛 Fixed {{url}} output when using {{#next_post}}/{{#prev_post}}
closes #10546 - TODO: raise issue
This commit is contained in:
parent
2732e467db
commit
f33dacaf64
@ -163,6 +163,7 @@ get = function get(resource, options) {
|
||||
// Parse the options we're going to pass to the API
|
||||
apiOptions = parseOptions(ghostGlobals, this, apiOptions);
|
||||
|
||||
// @TODO: get helper should make an HTTP request to the Content API {version}
|
||||
return api[apiVersion][controller][action](apiOptions).then(function success(result) {
|
||||
var blockParams;
|
||||
|
||||
|
@ -53,7 +53,10 @@ fetch = function fetch(options, data) {
|
||||
const apiOptions = buildApiOptions(options, this);
|
||||
const apiVersion = data.root._locals.apiVersion;
|
||||
|
||||
return api[apiVersion].posts
|
||||
// @TODO: prev_next helper should make an HTTP request to the Content API {version}
|
||||
const controller = api[apiVersion].postsPublic || api[apiVersion].posts;
|
||||
|
||||
return controller
|
||||
.browse(apiOptions)
|
||||
.then(function handleSuccess(result) {
|
||||
var related = result.posts[0];
|
||||
|
Loading…
Reference in New Issue
Block a user