fix url base on invite and broken getLanguages

pull/61/head
Harvey Tindall 4 years ago
parent 2ee0ed55f6
commit 4c653fea36
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -596,7 +596,9 @@ func start(asDaemon, firstCall bool) {
app.debug.Println("Loading pprof") app.debug.Println("Loading pprof")
pprof.Register(router) pprof.Register(router)
} }
router.GET("/lang/:page", app.GetLanguages) for _, p := range routePrefixes {
router.GET(p+"/lang/:page", app.GetLanguages)
}
if !firstRun { if !firstRun {
for _, p := range routePrefixes { for _, p := range routePrefixes {
router.GET(p+"/", app.AdminPage) router.GET(p+"/", app.AdminPage)

@ -166,7 +166,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
email = "" email = ""
} }
gcHTML(gc, http.StatusOK, "form-loader.html", gin.H{ gcHTML(gc, http.StatusOK, "form-loader.html", gin.H{
"urlBase": app.getURLBase, "urlBase": app.getURLBase(gc),
"cssClass": app.cssClass, "cssClass": app.cssClass,
"contactMessage": app.config.Section("ui").Key("contact_message").String(), "contactMessage": app.config.Section("ui").Key("contact_message").String(),
"helpMessage": app.config.Section("ui").Key("help_message").String(), "helpMessage": app.config.Section("ui").Key("help_message").String(),

Loading…
Cancel
Save