{"action":"opened","issue":{"url":"https://api.github.com/repos/mysociety/whatdotheyknow-theme/issues/486","repository_url":"https://api.github.com/repos/mysociety/whatdotheyknow-theme","labels_url":"https://api.github.com/repos/mysociety/whatdotheyknow-theme/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/whatdotheyknow-theme/issues/486/comments","events_url":"https://api.github.com/repos/mysociety/whatdotheyknow-theme/issues/486/events","html_url":"https://github.com/mysociety/whatdotheyknow-theme/issues/486","id":343482143,"node_id":"MDU6SXNzdWUzNDM0ODIxNDM=","number":486,"title":"Charity registration links in WDTK lead to out of date resources","user":{"login":"mdeuk","id":249418,"node_id":"MDQ6VXNlcjI0OTQxOA==","avatar_url":"https://avatars2.githubusercontent.com/u/249418?v=4","gravatar_id":"","url":"https://api.github.com/users/mdeuk","html_url":"https://github.com/mdeuk","followers_url":"https://api.github.com/users/mdeuk/followers","following_url":"https://api.github.com/users/mdeuk/following{/other_user}","gists_url":"https://api.github.com/users/mdeuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mdeuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdeuk/subscriptions","organizations_url":"https://api.github.com/users/mdeuk/orgs","repos_url":"https://api.github.com/users/mdeuk/repos","events_url":"https://api.github.com/users/mdeuk/events{/privacy}","received_events_url":"https://api.github.com/users/mdeuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T04:17:56Z","updated_at":"2018-07-23T04:17:56Z","closed_at":null,"author_association":"NONE","body":"Charity organisations in both England/Wales and Scotland that have their metadata tags appropriately recorded are generating erroneous 'Charity Registration' links in the \"More about this authority\" panel. It would appear that the search URLs we use in both scenarios have expired at some point in the past, and are not being appropriately re-directed elsewhere.\r\n\r\n### Example 1 - Scottish charity\r\nSteps to reproduce:\r\n\r\n1. Visit WDTK page for authority - https://www.whatdotheyknow.com/body/jobs_and_business_glasgow\r\n2. Click 'Charity registration' link - \r\nhttp://www.oscr.org.uk/CharityIndexDetails.aspx?id=SC023930\r\n3. Note 404 error\r\n\r\n**Proposed fix:** Change search URL for Charity searches in Scotland to: https://www.oscr.org.uk/search/charity-details?number=_<CHARITYNUMBER>_#results (where <CHARITYNUMBER> is the charity reg number starting SC)\r\n\r\n### Example 2 - English charity\r\nSteps to reproduce:\r\n1. Visit WDTK page for authority - https://www.whatdotheyknow.com/body/national_trust\r\n2. Click 'Charity registration' link - \r\nhttp://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=205846\r\n3. Note that a generic page appears which is generic and has not carried out any search, meaning a duplicitous task is required.\r\n\r\n**Proposed fix:** Change search url for Charity searches in England and Wales to: http://beta.charitycommission.gov.uk/charity-search/?q=_<CHARITYNUMBER>_ (where <CHARITYNUMBER> is the charity reg number)"}}
{"actor":{"display_login":"mdeuk"}}