{"action":"closed","issue":{"url":"https://api.github.com/repos/statamic/v2-hub/issues/2089","repository_url":"https://api.github.com/repos/statamic/v2-hub","labels_url":"https://api.github.com/repos/statamic/v2-hub/issues/2089/labels{/name}","comments_url":"https://api.github.com/repos/statamic/v2-hub/issues/2089/comments","events_url":"https://api.github.com/repos/statamic/v2-hub/issues/2089/events","html_url":"https://github.com/statamic/v2-hub/issues/2089","id":345752395,"node_id":"MDU6SXNzdWUzNDU3NTIzOTU=","number":2089,"title":"Locale with relate tag changed/broken from 2.8 to 2.10","user":{"login":"FrittenKeeZ","id":1186125,"node_id":"MDQ6VXNlcjExODYxMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1186125?v=4","gravatar_id":"","url":"https://api.github.com/users/FrittenKeeZ","html_url":"https://github.com/FrittenKeeZ","followers_url":"https://api.github.com/users/FrittenKeeZ/followers","following_url":"https://api.github.com/users/FrittenKeeZ/following{/other_user}","gists_url":"https://api.github.com/users/FrittenKeeZ/gists{/gist_id}","starred_url":"https://api.github.com/users/FrittenKeeZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrittenKeeZ/subscriptions","organizations_url":"https://api.github.com/users/FrittenKeeZ/orgs","repos_url":"https://api.github.com/users/FrittenKeeZ/repos","events_url":"https://api.github.com/users/FrittenKeeZ/events{/privacy}","received_events_url":"https://api.github.com/users/FrittenKeeZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-30T13:14:05Z","updated_at":"2018-07-31T09:30:11Z","closed_at":"2018-07-31T09:30:11Z","author_association":"NONE","body":"**Describe the bug**\r\nWe have a very simple alternate canonical tag generator for SEO:\r\n```\r\n{{ locales current_first=\"false\" }}\r\n    {{ relate:page:id :locale=\"locale:key\" }}\r\n        <link rel=\"alternate\" hreflang=\"{{ locale:key }}\" href=\"{{ permalink }}\" />\r\n    {{ /relate:page:id }}\r\n{{ /locales }}\r\n```\r\nThis has stopped working in 2.10, only outputting the link for the default locale, though still looped for each locale. I have absolutely no idea how to fix this, as it worked in 2.8.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Paste the above snippet in to `<head>`\r\n2. See that the generated links are the same regardless of locale.\r\n\r\n**Expected behavior**\r\nLocale specific URLs are generated for the page.\r\n\r\n**Environment details (please complete the following information):**\r\n - Statamic Version: 2.10.2\r\n - Fresh Install or Upgrade: Upgrade from 2.8.10\r\n - OS: Alpine Linux 3.7\r\n - Browser: any\r\n - Web Server: Nginx\r\n - PHP Version: 7.1"}}
{"actor":{"display_login":"FrittenKeeZ"}}