diff --git a/src/main/java/be/seeseepuff/webgit/controller/RepoController.java b/src/main/java/be/seeseepuff/webgit/controller/RepoController.java index 434bafb..a45a173 100644 --- a/src/main/java/be/seeseepuff/webgit/controller/RepoController.java +++ b/src/main/java/be/seeseepuff/webgit/controller/RepoController.java @@ -22,7 +22,7 @@ public class RepoController @GetMapping("/repo/{name}") public String repo(@PathVariable String name) { - return "redirect:/repo/" + name + "/branches"; + return "redirect:/repo/" + name + "/changes"; } @GetMapping("/repo/{name}/branches") diff --git a/src/main/resources/templates/frameset.html b/src/main/resources/templates/frameset.html index 68c0509..88ecb58 100644 --- a/src/main/resources/templates/frameset.html +++ b/src/main/resources/templates/frameset.html @@ -4,7 +4,7 @@ - + <body> <p>Your browser does not support frames. <a href="/repos">Click here</a> to continue.</p> diff --git a/src/test/java/be/seeseepuff/webgit/controller/RepoControllerTest.java b/src/test/java/be/seeseepuff/webgit/controller/RepoControllerTest.java index 2506ef7..059b4ab 100644 --- a/src/test/java/be/seeseepuff/webgit/controller/RepoControllerTest.java +++ b/src/test/java/be/seeseepuff/webgit/controller/RepoControllerTest.java @@ -25,11 +25,11 @@ class RepoControllerTest private GitService gitService; @Test - void repoRedirectsToBranches() throws Exception + void repoRedirectsToChanges() throws Exception { mockMvc.perform(get("/repo/myrepo")) .andExpect(status().is3xxRedirection()) - .andExpect(redirectedUrl("/repo/myrepo/branches")); + .andExpect(redirectedUrl("/repo/myrepo/changes")); } @Test