mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #4304 from jillesme/master
Set link [prev/next] tag to https if urlSSL is set.
This commit is contained in:
commit
42d9a4f640
1 changed files with 2 additions and 2 deletions
|
@ -64,12 +64,12 @@ ghost_head = function (options) {
|
|||
if (self.pagination.prev) {
|
||||
prev = (self.pagination.prev > 1 ? prev = '/page/' + self.pagination.prev + '/' : prev = '/');
|
||||
prev = (trimmedUrl) ? '/' + trimmedUrl + prev : prev;
|
||||
head.push('<link rel="prev" href="' + config.urlFor({relativeUrl: prev}, true) + '" />');
|
||||
head.push('<link rel="prev" href="' + config.urlFor({relativeUrl: prev, secure: self.secure}, true) + '" />');
|
||||
}
|
||||
if (self.pagination.next) {
|
||||
next = '/page/' + self.pagination.next + '/';
|
||||
next = (trimmedUrl) ? '/' + trimmedUrl + next : next;
|
||||
head.push('<link rel="next" href="' + config.urlFor({relativeUrl: next}, true) + '" />');
|
||||
head.push('<link rel="next" href="' + config.urlFor({relativeUrl: next, secure: self.secure}, true) + '" />');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue