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:
parent
a4427952e2
commit
03ca49ca5e
1 changed files with 1 additions and 1 deletions
|
@ -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 + '/'});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue