(site) Update domain parameter type from PathParam to QueryParam

This commit is contained in:
Viktor Lofgren 2024-12-13 02:15:35 +01:00
parent bbdde789e7
commit bdba53f055

View File

@ -71,7 +71,7 @@ public class SearchSiteInfoService {
@GET @GET
@Path("/site") @Path("/site")
public ModelAndView<?> handleOverview(@PathParam String domain) { public ModelAndView<?> handleOverview(@QueryParam String domain) {
if (domain != null) { if (domain != null) {
// redirect to /site/domainName // redirect to /site/domainName
return new MapModelAndView("/redirect.jte", Map.of("url", "/site/"+domain)); return new MapModelAndView("/redirect.jte", Map.of("url", "/site/"+domain));