diff --git a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java index e91419a93bdee23917a4b5784c0eeb26a9c06106..86c2dd5d8a40988de9a7ca0d48ed9e95d3b00efb 100644 --- a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java +++ b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java @@ -27,10 +27,10 @@ public class organisationControllers { } @Autowired private localAuthorityRepository localAuthorityRepository; - @GetMapping("/local-auth-data.html") + @GetMapping("/local-auth-data") public ModelAndView localAuthSent(@Valid @ModelAttribute("localAuthority")localAuthority localAuthority, BindingResult bindingResult, Model model ) { if (bindingResult.hasErrors()){ - ModelAndView modelAndView = new ModelAndView("local-auth-data.html", model.asMap()); + ModelAndView modelAndView = new ModelAndView("local-auth-data", model.asMap()); return modelAndView; }else{// converts user input using the organisation constructor into a submittable format to the sql table diff --git a/src/main/resources/templates/local-authorities.html b/src/main/resources/templates/local-authorities.html index a0dab7faaac5e1e94c282545e1bb34c53123bcec..577f8fdcbd649e8aff39ca40eb1ea4325c7509a5 100644 --- a/src/main/resources/templates/local-authorities.html +++ b/src/main/resources/templates/local-authorities.html @@ -14,7 +14,7 @@ <li th:text="${localauthorities}"></li> </ul> </div> -<button><a href="local-auth-data" id="authority">Local Authorities please enter here</a></button> +<button><a href="local-auth-data.html" id="authority">Local Authorities please enter here</a></button> <footer th:insert=/towns/Templating.html::footer></footer> </body> </html> \ No newline at end of file