From a05ee944a604db058e095ba57a42c81c2f1c6d96 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Mon, 26 Dec 2016 16:23:07 -0600 Subject: [PATCH] Added a route to allow paths in URL and still enable tracking. Fixes #498 --- controllers/route.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/route.go b/controllers/route.go index dbb946c2..c2ea06c0 100644 --- a/controllers/route.go +++ b/controllers/route.go @@ -80,6 +80,7 @@ func CreatePhishingRouter() http.Handler { router := mux.NewRouter() router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/endpoint/")))) router.HandleFunc("/track", PhishTracker) + router.HandleFunc("/{path:.*}/track", PhishTracker) router.HandleFunc("/{path:.*}", PhishHandler) return router }