Skip to content
Snippets Groups Projects
Commit e51e02b5 authored by Seb Barnard's avatar Seb Barnard :speech_balloon:
Browse files

Merge branch 'develop' into 'issueSeven'

Develop

See merge request !35
parents 354b7fec 4a2644ef
No related branches found
No related tags found
5 merge requests!56tags will be saved to userFavTags table (needs user ID of current logged in user),!50Merging for latest changes,!46Develop,!44Branch update,!35Develop
package com.example.clientproject.web.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class Redirect {
@GetMapping("/redirect")
public String redirect(@RequestParam(name="url") String url){
try{
return "redirect:/"+url;
}catch(Exception e){
return "redirect:/";
}
}
}
......@@ -42,7 +42,7 @@ public class SignInController {
return "registerbusiness.html";
}
saveBusiness.save(new BusinessRegisterDTO(brf));
return "redirect:/businessRegister";
return "redirect:/redirect?url=businessRegister";
}
@GetMapping("/businessRedirect")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment