{"action":"opened","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3941","repository_url":"https://api.github.com/repos/Yoast/wordpress-seo","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3941/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3941/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3941/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/3941","id":134012707,"number":3941,"title":"Schema.org organisation URL can't be modified","user":{"login":"craigedmunds","id":1453591,"avatar_url":"https://avatars.githubusercontent.com/u/1453591?v=3","gravatar_id":"","url":"https://api.github.com/users/craigedmunds","html_url":"https://github.com/craigedmunds","followers_url":"https://api.github.com/users/craigedmunds/followers","following_url":"https://api.github.com/users/craigedmunds/following{/other_user}","gists_url":"https://api.github.com/users/craigedmunds/gists{/gist_id}","starred_url":"https://api.github.com/users/craigedmunds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigedmunds/subscriptions","organizations_url":"https://api.github.com/users/craigedmunds/orgs","repos_url":"https://api.github.com/users/craigedmunds/repos","events_url":"https://api.github.com/users/craigedmunds/events{/privacy}","received_events_url":"https://api.github.com/users/craigedmunds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T15:35:15Z","updated_at":"2016-02-16T15:35:15Z","closed_at":null,"body":"I'm using the wpseo_canonical hook to override the canonical URL to include a trailing slash, resulting in the markup below.\r\n\r\nIt seems that, in the JSON generator, by passing true for the second, un_paged argument, the value that was provided by my hook isn't used.\r\n\r\nThis is corroborated within generate_canonical whereby canonical_unpaged is assigned before the filter is invoked.\r\n\r\nhttps://github.com/Yoast/wordpress-seo/blob/trunk/frontend/class-json-ld.php#L156\r\n\r\nIs this by design? Thoughts on the best way to fix it? Happy to fix and raise a PR if the behaviour I want would help.\r\n\r\n<!-- This site is optimized with the Yoast SEO plugin v3.0.7 - https://yoast.com/wordpress/plugins/seo/ -->\r\n<meta name=\"description\" content=\"The Victor Blog will immerse you into a world of luxury, inspiring your lifestyle and providing you with the latest news and experiences from around the world\"/>\r\n<meta name=\"robots\" content=\"noindex,follow,noodp\"/>\r\n<link rel=\"canonical\" href=\"http://v3-content-flyvictor.dev/blog/\" />\r\n<link rel=\"next\" href=\"http://v3-content-flyvictor.dev/blog/page/2/\" />\r\n<meta property=\"og:locale\" content=\"en_US\" />\r\n<meta property=\"og:type\" content=\"website\" />\r\n<meta property=\"og:title\" content=\"The Victor Blog | Victor\" />\r\n<meta property=\"og:description\" content=\"The Victor Blog will immerse you into a world of luxury, inspiring your lifestyle and providing you with the latest news and experiences from around the world\" />\r\n<meta property=\"og:url\" content=\"http://v3-content-flyvictor.dev/blog/\" />\r\n<meta property=\"og:site_name\" content=\"The Victor Blog\" />\r\n<meta name=\"twitter:card\" content=\"summary\"/>\r\n<meta name=\"twitter:description\" content=\"The Victor Blog will immerse you into a world of luxury, inspiring your lifestyle and providing you with the latest news and experiences from around the world\"/>\r\n<meta name=\"twitter:title\" content=\"The Victor Blog | Victor\"/>\r\n<script type='application/ld+json'>{\"@context\":\"http:\\/\\/schema.org\",\"@type\":\"WebSite\",\"url\":\"http:\\/\\/v3-content-flyvictor.dev\\/blog\\/\",\"name\":\"The Victor Blog\",\"potentialAction\":{\"@type\":\"SearchAction\",\"target\":\"http:\\/\\/v3-content-flyvictor.dev\\/blog\\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}}</script>\r\n<script type='application/ld+json'>{\"@context\":\"http:\\/\\/schema.org\",\"@type\":\"Organization\",\"url\":\"http:\\/\\/v3-content-flyvictor.dev\\/blog\",\"sameAs\":[],\"name\":\"FlyVictor\",\"logo\":\"https:\\/\\/d36cupokioykvg.cloudfront.net\\/sites\\/4\\/2015\\/04\\/victor-logo-144dpi.png\"}</script>\r\n<!-- / Yoast SEO plugin. -->"}}