Hexo-theme-next: <link rel="canonical" href="URL"/> is wrong! [solved]

Created on 16 Jan 2018  ·  11Comments  ·  Source: theme-next/hexo-theme-next

You can see website source!

我看了一下 6.0.1 主题,生成的网页

<link rel="canonical" href="URL"/> 没有和当前页面对照起来。

view-source:https://leaferx.online/2017/01/30/Bottomheart/

查找 canonical 关键字

Bug Solved

Most helpful comment

Fixed in bad433475a3cdcc420807ac8008a5018558e0622

All 11 comments

<link rel="canonical" href="URL"/>

URL isn't current page url.

Your site (v 5.1.4):

view-source:https://www.khs1994.com/linux/openssl/https/README.html
<link rel="canonical" href="https://www.khs1994.com/linux/openssl/https/README.html"/>

What u want?

Option canonical wan not modified since version 5 but issue is relevant to version 6 surprisingly.

Bug was detected on:

For now i don't understand why this bug exists. Need to check it deeper...


ATTENTION! All peoples who get this bug — try to turn cache off.

I use 6.x show this wrong,So I back to 5.x!

@khs1994 yeah. thank's for report issue. Try to disable cache option and generate again. I think need just exclude canonical option from cache during generation.

cache:
  enable: false

solved

Non totally solved, it's just temporarily decision. Fix will ASAP.

Thanks.

Fixed in bad433475a3cdcc420807ac8008a5018558e0622

Good job.

Thanks for notifying me that

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hsiangfeng picture hsiangfeng  ·  5Comments

dandyxu picture dandyxu  ·  5Comments

codenoobforreal picture codenoobforreal  ·  3Comments

yidasanqian picture yidasanqian  ·  5Comments

yongjunwen picture yongjunwen  ·  6Comments