mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(site) Update domain parameter type from PathParam to QueryParam
This commit is contained in:
parent
bbdde789e7
commit
bdba53f055
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user