The parameter "path" is added to the model
[demos/testing] / src / main / java / de / juplo / demo / HtmlController.java
index ec5919c..92ed7ff 100644 (file)
@@ -27,6 +27,7 @@ public class HtmlController
   @GetMapping({ "", "/" })
   public String fetch(Model model, @RequestParam(required = false) String path)
   {
+    model.addAttribute("path", path);
     model.addAttribute(
         "text",
         path == null