Fix error without query params
This commit is contained in:
parent
b6d400688f
commit
23499a9710
|
@ -40,7 +40,7 @@ func handleMedia(c *fiber.Ctx, url string) error {
|
||||||
url = strings.ReplaceAll(url, ".jpeg", ".webp")
|
url = strings.ReplaceAll(url, ".jpeg", ".webp")
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(c.Path(), "/stack") {
|
if strings.HasPrefix(c.Path(), "/stack") && strings.Contains(c.OriginalURL(), "?") {
|
||||||
url = url + "?" + strings.Split(c.OriginalURL(), "?")[1]
|
url = url + "?" + strings.Split(c.OriginalURL(), "?")[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue