{"action":"closed","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/2805","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/2805/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/2805/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/2805/events","html_url":"https://github.com/go-gitea/gitea/issues/2805","id":269591176,"number":2805,"title":"Recent \"Url scheme\" commit breaks redirects (404s) when the \"root url\" is in a subdirectory","user":{"login":"wyattoday","id":11202536,"avatar_url":"https://avatars2.githubusercontent.com/u/11202536?v=4","gravatar_id":"","url":"https://api.github.com/users/wyattoday","html_url":"https://github.com/wyattoday","followers_url":"https://api.github.com/users/wyattoday/followers","following_url":"https://api.github.com/users/wyattoday/following{/other_user}","gists_url":"https://api.github.com/users/wyattoday/gists{/gist_id}","starred_url":"https://api.github.com/users/wyattoday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyattoday/subscriptions","organizations_url":"https://api.github.com/users/wyattoday/orgs","repos_url":"https://api.github.com/users/wyattoday/repos","events_url":"https://api.github.com/users/wyattoday/events{/privacy}","received_events_url":"https://api.github.com/users/wyattoday/received_events","type":"User","site_admin":false},"labels":[{"id":472744938,"url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/bug","name":"kind/bug","color":"ee0701","default":false},{"id":608693925,"url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/regression","name":"kind/regression","color":"c92f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-gitea/gitea/milestones/9","html_url":"https://github.com/go-gitea/gitea/milestone/9","labels_url":"https://api.github.com/repos/go-gitea/gitea/milestones/9/labels","id":2360618,"number":9,"title":"1.3.0","description":"","creator":{"login":"lunny","id":81045,"avatar_url":"https://avatars2.githubusercontent.com/u/81045?v=4","gravatar_id":"","url":"https://api.github.com/users/lunny","html_url":"https://github.com/lunny","followers_url":"https://api.github.com/users/lunny/followers","following_url":"https://api.github.com/users/lunny/following{/other_user}","gists_url":"https://api.github.com/users/lunny/gists{/gist_id}","starred_url":"https://api.github.com/users/lunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunny/subscriptions","organizations_url":"https://api.github.com/users/lunny/orgs","repos_url":"https://api.github.com/users/lunny/repos","events_url":"https://api.github.com/users/lunny/events{/privacy}","received_events_url":"https://api.github.com/users/lunny/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":241,"state":"open","created_at":"2017-03-03T08:08:59Z","updated_at":"2017-11-02T00:30:20Z","due_on":"2017-10-25T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-10-30T13:02:14Z","updated_at":"2017-11-02T00:30:19Z","closed_at":"2017-11-02T00:30:19Z","author_association":"NONE","body":"- Gitea version (or commit ref): https://github.com/go-gitea/gitea/commit/513375c429435ba60a667b219bdfb00e5b760b38\r\n- Git version: 2.14.3\r\n- Operating system: Linux\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [X] MySQL\r\n  - [ ] MSSQL\r\n  - [ ] SQLite\r\n- Can you reproduce the bug at https://try.gitea.io:\r\n  - [ ] Yes (provide example URL)\r\n  - [ ] No\r\n  - [X] Not relevant\r\n- Log gist:\r\n\r\n## Description\r\n\r\nUse a `ROOT_URL` in your config in a directory other than the \"root\" directory. For example, https://example.com/git/\r\n\r\nThe problem is that the \"Commits\" link at the top of a repository view has the form `/BASE_DIR/COMPANY_NAME/REPOSITORY_NAME/commits/master` when it should be `/BASE_DIR/COMPANY_NAME/REPOSITORY_NAME/commits/branch/master` (as per the latest commit: https://github.com/go-gitea/gitea/commit/513375c429435ba60a667b219bdfb00e5b760b38 ).\r\n\r\nHowever, if you click the current \"Commits\" link it incorrect drops the \"subdirectory\" part of the URL. Meaning Gitea currently incorrectly redirects to `/COMPANY_NAME/REPOSITORY_NAME/commits/branch/master` instead of `/BASE_DIR/COMPANY_NAME/REPOSITORY_NAME/commits/branch/master`. Meaning, the current redirection code assumes the gitea installation is in the root directory. Which, for us that's not true.\r\n\r\nThe breaking changes were in this commit: https://github.com/go-gitea/gitea/commit/513375c429435ba60a667b219bdfb00e5b760b38\r\n"}}
{"actor":{"display_login":"lunny"}}