Bugfix/sample edit redirect
Fixes #301 (closed).
This merge request changes the way that the redirect string is created when editing a sample. The method used to call
request.getRequestURI(), which includes the context path of the request. The Spring docs on
redirect: responses (here: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-redirecting-redirect-prefix) says:
A logical view name such as redirect:/myapp/some/resource will redirect relative to the current Servlet context...
I changed the way the URL is built to get the URL that was matched by the
@RequestMapping, so that the context path is not included.