fix: error opening details pages
1 file changed, 3 insertions(+), 5 deletions(-)
changed files
M internal/server/global.go → internal/server/global.go
@@ -37,12 +37,10 @@ source: source, mux: http.NewServeMux(), } - g.log.Debug("adding handler", "uri", source.LocalURL().JoinPath("{id}").String()) - // JoinPath would escape braces, breaking parameters - h.mux.HandleFunc(source.LocalURL().Path+"/search", h.Search) - h.mux.HandleFunc(source.LocalURL().Path+"/{id}", h.Detail) - h.mux.HandleFunc(source.LocalURL().Path+"/opensearch.xml", h.OpenSearchXML) + h.mux.HandleFunc(source.LocalURL().Path+"search", h.Search) + h.mux.HandleFunc(source.LocalURL().Path+"{id}", h.Detail) + h.mux.HandleFunc(source.LocalURL().Path+"opensearch.xml", h.OpenSearchXML) return h }