{"action":"created","issue":{"url":"https://api.github.com/repos/gohugoio/hugo/issues/4507","repository_url":"https://api.github.com/repos/gohugoio/hugo","labels_url":"https://api.github.com/repos/gohugoio/hugo/issues/4507/labels{/name}","comments_url":"https://api.github.com/repos/gohugoio/hugo/issues/4507/comments","events_url":"https://api.github.com/repos/gohugoio/hugo/issues/4507/events","html_url":"https://github.com/gohugoio/hugo/issues/4507","id":305699616,"node_id":"MDU6SXNzdWUzMDU2OTk2MTY=","number":4507,"title":".Permalink doesn't contain the `/page/:number` part in paginated list templates","user":{"login":"MunifTanjim","id":8050659,"node_id":"MDQ6VXNlcjgwNTA2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8050659?v=4","gravatar_id":"","url":"https://api.github.com/users/MunifTanjim","html_url":"https://github.com/MunifTanjim","followers_url":"https://api.github.com/users/MunifTanjim/followers","following_url":"https://api.github.com/users/MunifTanjim/following{/other_user}","gists_url":"https://api.github.com/users/MunifTanjim/gists{/gist_id}","starred_url":"https://api.github.com/users/MunifTanjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MunifTanjim/subscriptions","organizations_url":"https://api.github.com/users/MunifTanjim/orgs","repos_url":"https://api.github.com/users/MunifTanjim/repos","events_url":"https://api.github.com/users/MunifTanjim/events{/privacy}","received_events_url":"https://api.github.com/users/MunifTanjim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-15T20:01:44Z","updated_at":"2018-11-14T08:50:14Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Example:**\r\n\r\nIn the `https://example.com/blog/page/2/` page, the `.Permalink` is set to `https://example.com/blog/`.\r\n\r\nShouldn't `.Permalink` be set to `https://example.com/blog/page/2`?\r\n\r\nOr is this by design?\r\n\r\n**Use case:**\r\n\r\nQuoted from [Pagination & SEO: best practices](https://yoast.com/pagination-seo-best-practices/):\r\n\r\n> Google is very clear now: each page within a paginated series should canonicalize to itself, so `/page/2/` has a canonical pointing to `/page/2/`\r\n\r\nIf the `.Permalink` is set to `https://example.com/blog/page/:number` on paginated list templates, using the following code for including `link(rel=canonical)` tag to the HTML `head` would follow the best practice by default.\r\n\r\n```go\r\n<link rel='canonical' href='{{ .Permalink }}'>\r\n```\r\nOtherwise, with the current `.Permalink` implementation, we have to come up with hacks that include checking if it's a list template and then extract the page number from the paginator pages."},"comment":{"url":"https://api.github.com/repos/gohugoio/hugo/issues/comments/438584480","html_url":"https://github.com/gohugoio/hugo/issues/4507#issuecomment-438584480","issue_url":"https://api.github.com/repos/gohugoio/hugo/issues/4507","id":438584480,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODU4NDQ4MA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-14T08:50:14Z","updated_at":"2018-11-14T08:50:14Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.\nIf this is a **bug** and you can still reproduce this error on the <code>master</code> branch, please reply with all of the information you have about it in order to keep the issue open.\nIf this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why.\nThis issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.\n"}}
{"actor":{"display_login":"stale"}}