krz/skunky-art

Alternative privacy frontend for DeviantArt.

clone: git clone https://gitbay.org/krz/skunky-art.git

5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf

unsigned

author: lost+skunk <skunky@ebloid.ru> · 2024-09-03T13:14:19Z

фикс небольшого обосрамса
 app/router.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/router.go b/app/router.go
index cc58f93..2625374 100644
--- a/app/router.go
+++ b/app/router.go
@@ -13,9 +13,10 @@ var Host, Path string
 
 func Router() {
 	parsepath := func(path string) map[int]string {
-		path = "/"
 		if l := len(CFG.URI); len(path) > l {
 			path = path[l-1:]
+		} else {
+			path = "/"
 		}
 
 		parsedpath := make(map[int]string)