mirror of https://github.com/gophish/gophish
Added a route to allow paths in URL and still enable tracking. Fixes #498
parent
8bb13ad7ee
commit
a05ee944a6
|
@ -80,6 +80,7 @@ func CreatePhishingRouter() http.Handler {
|
||||||
router := mux.NewRouter()
|
router := mux.NewRouter()
|
||||||
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/endpoint/"))))
|
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/endpoint/"))))
|
||||||
router.HandleFunc("/track", PhishTracker)
|
router.HandleFunc("/track", PhishTracker)
|
||||||
|
router.HandleFunc("/{path:.*}/track", PhishTracker)
|
||||||
router.HandleFunc("/{path:.*}", PhishHandler)
|
router.HandleFunc("/{path:.*}", PhishHandler)
|
||||||
return router
|
return router
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue