mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Set link[prev/next] tag to https if urlSSL is set
The <link> tag for next/previous in the head doesn't update when the normal URL and the urlSSL change. This fixes that bug. Fixes #4266
This commit is contained in:
parent
abd6266c73
commit
090dc297eb
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