about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:55:09 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:55:09 +0100
commita648fa0d315915f17a119a9b3b38316280a71146 (patch)
treecbeb4b8188abb1385d86342ef2c4c74ec22bc754 /src
parentff3b9605ff4d4cbd592eb39600dc52b781f3f5e0 (diff)
using the path provided in the url
Diffstat (limited to 'src')
-rw-r--r--src/http/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/http.go b/src/http/http.go
index b0e0145..7f9b51c 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -295,7 +295,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
 // breadcrumbs get's the breadcrumbs from the request
 func breadcrumbs(r *http.Request) structs.Breadcrumbs {
 
-	request := r.RequestURI
+	request := r.URL.Path
 
 	// mitigate path traversals
 	strippedRequest := strings.Replace(request, "..", "", -1)