Am trying to use HTMX & Thymeleaf partials to reduce large amounts of javascript per page.
I am experiencing some strange behaviour with a controller ‘return “redirect:/xxxx/yyyyy/” + itemId’ from a postmapping request to a getmapping request, the getmapping function is successfully processed although rendering and writing the page its dropping the “itemId” from the URL and therefore not correctly loading the page.
Is the a way to permanently writing the URL without using redirect string?
I’ve tried rewriting the string using model ‘return “redirect:/xxxx/yyyy/{itemId}”‘ plus String.format(“redirect:/xxxx/yyyy/%s”,itemId) and StringBuilder and non have made a difference