{"action":"created","issue":{"url":"https://api.github.com/repos/openscholar/openscholar/issues/7137","labels_url":"https://api.github.com/repos/openscholar/openscholar/issues/7137/labels{/name}","comments_url":"https://api.github.com/repos/openscholar/openscholar/issues/7137/comments","events_url":"https://api.github.com/repos/openscholar/openscholar/issues/7137/events","html_url":"https://github.com/openscholar/openscholar/issues/7137","id":70123319,"number":7137,"title":"links to page attachments don't work after they are removed as attachments","user":{"login":"openscholar-admin","id":4911725,"avatar_url":"https://avatars.githubusercontent.com/u/4911725?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar-admin","html_url":"https://github.com/openscholar-admin","followers_url":"https://api.github.com/users/openscholar-admin/followers","following_url":"https://api.github.com/users/openscholar-admin/following{/other_user}","gists_url":"https://api.github.com/users/openscholar-admin/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar-admin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar-admin/subscriptions","organizations_url":"https://api.github.com/users/openscholar-admin/orgs","repos_url":"https://api.github.com/users/openscholar-admin/repos","events_url":"https://api.github.com/users/openscholar-admin/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar-admin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openscholar/openscholar/labels/status:%20in%20dev","name":"status: in dev","color":"FF4500"}],"state":"open","locked":false,"assignee":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openscholar/openscholar/milestones/33","html_url":"https://github.com/openscholar/openscholar/milestones/June%201,%202015","labels_url":"https://api.github.com/repos/openscholar/openscholar/milestones/33/labels","id":1112368,"number":33,"title":"June 1, 2015","description":"","creator":{"login":"rbran100","id":651318,"avatar_url":"https://avatars.githubusercontent.com/u/651318?v=3","gravatar_id":"","url":"https://api.github.com/users/rbran100","html_url":"https://github.com/rbran100","followers_url":"https://api.github.com/users/rbran100/followers","following_url":"https://api.github.com/users/rbran100/following{/other_user}","gists_url":"https://api.github.com/users/rbran100/gists{/gist_id}","starred_url":"https://api.github.com/users/rbran100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbran100/subscriptions","organizations_url":"https://api.github.com/users/rbran100/orgs","repos_url":"https://api.github.com/users/rbran100/repos","events_url":"https://api.github.com/users/rbran100/events{/privacy}","received_events_url":"https://api.github.com/users/rbran100/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":4,"state":"open","created_at":"2015-05-15T15:49:26Z","updated_at":"2015-05-22T14:16:02Z","due_on":"2015-06-01T04:00:00Z","closed_at":null},"comments":11,"created_at":"2015-04-22T13:17:57Z","updated_at":"2015-05-27T17:29:01Z","closed_at":null,"body":"[View or participate in the full discussion on our Community website](http://getsatisfaction.com/openscholar/topics/page-attachments-links-dont-work-after-they-are-removed-as-attachments)\r\n\r\n**The Plan**\r\n\r\nWe should no longer remove the files when they do not have a USED IN entry as they may be used elsewhere and are not tracked.\r\n\r\n**Description**\r\n\r\nIf you have an attachment to a page, link to it and then remove it as an attachment, you get a 404 for that link.  This does not happen with news items.\r\n\r\n\r\nTo repeat:\r\n\r\n\r\n\r\n* Create a page with an attachment\r\n\r\n* In the body of the page, add some text and link some of the text to that attachment using the wysiwyg link button, navigating to the files tab (which shows all the files in the site), and selecting the attachment associated with the page.\r\n\r\n* Save the page\r\n\r\n* test that the link to the attachment brings it up as expected when you view the page\r\n\r\n* Edit the page and remove the attachment.\r\n\r\n* Save the page\r\n\r\n* link to the attachment is now a 404\r\n\r\n\r\n\r\n\r\nIf you follow these steps with news content, the link to the attachment still works after it is removed."},"comment":{"url":"https://api.github.com/repos/openscholar/openscholar/issues/comments/106005056","html_url":"https://github.com/openscholar/openscholar/issues/7137#issuecomment-106005056","issue_url":"https://api.github.com/repos/openscholar/openscholar/issues/7137","id":106005056,"user":{"login":"tcheng001","id":2111600,"avatar_url":"https://avatars.githubusercontent.com/u/2111600?v=3","gravatar_id":"","url":"https://api.github.com/users/tcheng001","html_url":"https://github.com/tcheng001","followers_url":"https://api.github.com/users/tcheng001/followers","following_url":"https://api.github.com/users/tcheng001/following{/other_user}","gists_url":"https://api.github.com/users/tcheng001/gists{/gist_id}","starred_url":"https://api.github.com/users/tcheng001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcheng001/subscriptions","organizations_url":"https://api.github.com/users/tcheng001/orgs","repos_url":"https://api.github.com/users/tcheng001/repos","events_url":"https://api.github.com/users/tcheng001/events{/privacy}","received_events_url":"https://api.github.com/users/tcheng001/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T17:29:01Z","updated_at":"2015-05-27T17:29:01Z","body":"still not working. \r\nsteps to reproduce:\r\ncreate a presentation post\r\nattach a file \r\nsave the post\r\nedit the post \r\nadd a link in wysiwyg pointing to the attached file\r\nsave\r\nremove the attached from the post\r\nclick the link.\r\nNote: \r\nyou will get the error\r\n![screen shot 2015-05-27 at 1 27 40 pm](https://cloud.githubusercontent.com/assets/2111600/7842905/3047a4a2-0474-11e5-9045-85f170d69fc4.png)\r\n\r\n\r\n\r\n\r\n"}}