{"action":"closed","issue":{"url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server/issues/306","repository_url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server","labels_url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server/issues/306/comments","events_url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server/issues/306/events","html_url":"https://github.com/unidoscontraacorrupcao/ej-server/issues/306","id":365582169,"node_id":"MDU6SXNzdWUzNjU1ODIxNjk=","number":306,"title":"Verificar qual a melhor maneira de configurar direcionamentos no site da campanha","user":{"login":"ricardopoppi","id":1162183,"node_id":"MDQ6VXNlcjExNjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/1162183?v=4","gravatar_id":"","url":"https://api.github.com/users/ricardopoppi","html_url":"https://github.com/ricardopoppi","followers_url":"https://api.github.com/users/ricardopoppi/followers","following_url":"https://api.github.com/users/ricardopoppi/following{/other_user}","gists_url":"https://api.github.com/users/ricardopoppi/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardopoppi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardopoppi/subscriptions","organizations_url":"https://api.github.com/users/ricardopoppi/orgs","repos_url":"https://api.github.com/users/ricardopoppi/repos","events_url":"https://api.github.com/users/ricardopoppi/events{/privacy}","received_events_url":"https://api.github.com/users/ricardopoppi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"davidCarlos","id":2847027,"node_id":"MDQ6VXNlcjI4NDcwMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/2847027?v=4","gravatar_id":"","url":"https://api.github.com/users/davidCarlos","html_url":"https://github.com/davidCarlos","followers_url":"https://api.github.com/users/davidCarlos/followers","following_url":"https://api.github.com/users/davidCarlos/following{/other_user}","gists_url":"https://api.github.com/users/davidCarlos/gists{/gist_id}","starred_url":"https://api.github.com/users/davidCarlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidCarlos/subscriptions","organizations_url":"https://api.github.com/users/davidCarlos/orgs","repos_url":"https://api.github.com/users/davidCarlos/repos","events_url":"https://api.github.com/users/davidCarlos/events{/privacy}","received_events_url":"https://api.github.com/users/davidCarlos/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidCarlos","id":2847027,"node_id":"MDQ6VXNlcjI4NDcwMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/2847027?v=4","gravatar_id":"","url":"https://api.github.com/users/davidCarlos","html_url":"https://github.com/davidCarlos","followers_url":"https://api.github.com/users/davidCarlos/followers","following_url":"https://api.github.com/users/davidCarlos/following{/other_user}","gists_url":"https://api.github.com/users/davidCarlos/gists{/gist_id}","starred_url":"https://api.github.com/users/davidCarlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidCarlos/subscriptions","organizations_url":"https://api.github.com/users/davidCarlos/orgs","repos_url":"https://api.github.com/users/davidCarlos/repos","events_url":"https://api.github.com/users/davidCarlos/events{/privacy}","received_events_url":"https://api.github.com/users/davidCarlos/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server/milestones/7","html_url":"https://github.com/unidoscontraacorrupcao/ej-server/milestone/7","labels_url":"https://api.github.com/repos/unidoscontraacorrupcao/ej-server/milestones/7/labels","id":3566664,"node_id":"MDk6TWlsZXN0b25lMzU2NjY2NA==","number":7,"title":"Etapa 4","description":"","creator":{"login":"ricardopoppi","id":1162183,"node_id":"MDQ6VXNlcjExNjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/1162183?v=4","gravatar_id":"","url":"https://api.github.com/users/ricardopoppi","html_url":"https://github.com/ricardopoppi","followers_url":"https://api.github.com/users/ricardopoppi/followers","following_url":"https://api.github.com/users/ricardopoppi/following{/other_user}","gists_url":"https://api.github.com/users/ricardopoppi/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardopoppi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardopoppi/subscriptions","organizations_url":"https://api.github.com/users/ricardopoppi/orgs","repos_url":"https://api.github.com/users/ricardopoppi/repos","events_url":"https://api.github.com/users/ricardopoppi/events{/privacy}","received_events_url":"https://api.github.com/users/ricardopoppi/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":60,"state":"open","created_at":"2018-08-13T18:38:25Z","updated_at":"2018-10-01T20:44:42Z","due_on":"2018-10-05T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-10-01T18:18:16Z","updated_at":"2018-10-01T20:44:42Z","closed_at":"2018-10-01T20:44:42Z","author_association":"NONE","body":"@davidCarlos pode avaliar qual a melhor maneira de devolver esses redirects para o site? A gente permite que eles criem um .htaccess no path do site ou é melhor fazer via ngix?\r\n\r\nAnteriormente havíamos pedido que os diretórios /empresas e /doe fossem redirects para outros endereços. O antigo desenvolvedor fez esses redirecionamentos pelo arquivo .htaccess.\r\n\r\nO problema, então, foi que precisamos acessar arquivos que estão em pastas com o mesmo nome. Por exemplo:\r\nhttps://unidoscontraacorrupcao.org.br/empresas/assets/divulgacao/Newsletter_Corrupcao_01.zip\r\n\r\nA solução foi uma nova alteração no arquivo .htaccess, fazendo o redirect apenas quando a URL digitada é \"https://unidoscontraacorrupcao.org.br/empresas\" ou \"https://unidoscontraacorrupcao.org.br/doe\" e ignorando o redirecionamento caso haja mais alguma coisa após o nome do diretório.\r\n\r\nBUG: Ao migrar o servidor, aparentemente, o arquivo .htaccess que veio é a versão antiga, sem o último hack para acessar os arquivos.\r\n\r\nPrecisamos rever os redirecionamentos para que as seguintes lógicas aconteçam:\r\n\r\nhttps://unidoscontraacorrupcao.org.br/empresas envia para https://participe.transparenciainternacional.org.br/toolkit-de-engajamento/\r\n\r\nhttps://unidoscontraacorrupcao.org.br/doe envia para https://doe.transparenciainternacional.org.br/unidos-contra-a-corrupcao/\r\n\r\nhttps://unidoscontraacorrupcao.org.br/empresas/assets/QUALQUER-COISA acesse o arquivo pra download\r\n\r\nPrecisamos rever os redirecionamentos para que as seguintes lógicas aconteçam:\r\n\r\nhttps://unidoscontraacorrupcao.org.br/empresas envia para https://participe.transparenciainternacional.org.br/toolkit-de-engajamento/\r\n\r\nhttps://unidoscontraacorrupcao.org.br/doe envia para https://doe.transparenciainternacional.org.br/unidos-contra-a-corrupcao/\r\n\r\nhttps://unidoscontraacorrupcao.org.br/empresas/assets/QUALQUER-COISA acesse o arquivo pra download"}}
{"actor":{"display_login":"ricardopoppi"}}