fix: display albums and artists on the search page, and also few css fixes

This commit is contained in:
rramiachraf
2024-06-10 12:16:11 +01:00
parent e6e9d5b16d
commit 355b721069
6 changed files with 94 additions and 63 deletions

19
utils/url.go Normal file
View File

@ -0,0 +1,19 @@
package utils
import (
"net/url"
"strings"
)
func TrimURL(u string) string {
uu, err := url.Parse(u)
if err != nil {
return ""
}
if strings.HasPrefix(uu.Path, "/") {
return uu.Path
}
return "/" + uu.Path
}