{"action":"created","issue":{"url":"https://api.github.com/repos/nystudio107/craft-seomatic/issues/189","repository_url":"https://api.github.com/repos/nystudio107/craft-seomatic","labels_url":"https://api.github.com/repos/nystudio107/craft-seomatic/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/nystudio107/craft-seomatic/issues/189/comments","events_url":"https://api.github.com/repos/nystudio107/craft-seomatic/issues/189/events","html_url":"https://github.com/nystudio107/craft-seomatic/issues/189","id":347096881,"node_id":"MDU6SXNzdWUzNDcwOTY4ODE=","number":189,"title":"Overwritting rel=alternate in templates reverts back to default after some time","user":{"login":"XhmikosR","id":349621,"node_id":"MDQ6VXNlcjM0OTYyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/349621?v=4","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"labels":[{"id":869623673,"node_id":"MDU6TGFiZWw4Njk2MjM2NzM=","url":"https://api.github.com/repos/nystudio107/craft-seomatic/labels/need%20info","name":"need info","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":80,"created_at":"2018-08-02T17:01:28Z","updated_at":"2018-08-14T20:12:19Z","closed_at":null,"author_association":"NONE","body":"So this is a weird issue :/\r\n\r\nWe are using Craft Pro v3.0.18 with craft-seomatic v3.1.6.\r\n\r\nIn our templates we do this:\r\n\r\n```twig\r\n{% hook 'seo' %}\r\n{% do seomatic.tag.get('referrer').include(false) %}\r\n{% do seomatic.link.get('alternate').hreflang('en-US') %}\r\n```\r\n\r\nThis works fine for like ~ a day. After that, the link alternate reverts back to `x-default`. If I clear Craft's caches, then it goes back to `en-US`.\r\n\r\nI notice this issue on our production app but not in our staging app.\r\n\r\nWe override seomatic's config like this (not sure if it's 100% right)\r\n\r\n```php\r\nreturn [\r\n    // The server environment, either `live`, `staging`, or `local`\r\n    'environment' => getenv('ENVIRONMENT') === 'production' ? 'live' : getenv('ENVIRONMENT')\r\n];\r\n```\r\n\r\nI know the info might not be sufficient but I'm not sure what else info I can provide (at least publicly)."},"comment":{"url":"https://api.github.com/repos/nystudio107/craft-seomatic/issues/comments/413000219","html_url":"https://github.com/nystudio107/craft-seomatic/issues/189#issuecomment-413000219","issue_url":"https://api.github.com/repos/nystudio107/craft-seomatic/issues/189","id":413000219,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzAwMDIxOQ==","user":{"login":"XhmikosR","id":349621,"node_id":"MDQ6VXNlcjM0OTYyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/349621?v=4","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T20:12:19Z","updated_at":"2018-08-14T20:12:19Z","author_association":"NONE","body":"Yes, because locally I never use production. But I can't echo stuff on a live server, you understand."}}
{"actor":{"display_login":"XhmikosR"}}