0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Respect subdirectory for preview pages (#7365)

no issue
- added subdirectory for preview route when doing cache invalidation
This commit is contained in:
Sebastian Gierlinger 2016-09-14 13:32:48 +02:00 committed by Hannah Wolfe
parent a4427952e2
commit 03ca49ca5e

View file

@ -99,7 +99,7 @@ cacheInvalidationHeader = function cacheInvalidationHeader(req, result) {
if (hasStatusChanged || wasPublishedUpdated) {
return INVALIDATE_ALL;
} else {
return '/' + config.routeKeywords.preview + '/' + post.uuid + '/';
return config.urlFor({relativeUrl: '/' + config.routeKeywords.preview + '/' + post.uuid + '/'});
}
}
}