base_path changes

pull/224/head^2 v0.80.70
hunterlong 2020-01-13 00:41:14 -08:00
parent 217a45425d
commit 72f1889a94
8 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ func apiRenewHandler(w http.ResponseWriter, r *http.Request) {
func apiClearCacheHandler(w http.ResponseWriter, r *http.Request) {
CacheStorage = NewStorage()
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
}
func sendErrorJson(err error, w http.ResponseWriter, r *http.Request) {

View File

@ -63,12 +63,12 @@ func logoutHandler(w http.ResponseWriter, r *http.Request) {
session.Values["admin"] = false
session.Values["user_id"] = 0
session.Save(r, w)
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
}
func helpHandler(w http.ResponseWriter, r *http.Request) {
if !IsUser(r) {
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
return
}
help := source.HelpMarkdown()

View File

@ -27,7 +27,7 @@ import (
func messagesHandler(w http.ResponseWriter, r *http.Request) {
if !IsUser(r) {
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
return
}
messages, _ := core.SelectMessages()

View File

@ -26,7 +26,7 @@ import (
func setupHandler(w http.ResponseWriter, r *http.Request) {
if core.CoreApp.Services != nil {
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
return
}
var data interface{}
@ -40,7 +40,7 @@ func setupHandler(w http.ResponseWriter, r *http.Request) {
func processSetupHandler(w http.ResponseWriter, r *http.Request) {
var err error
if !core.SetupMode {
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
return
}
r.ParseForm()
@ -126,7 +126,7 @@ func processSetupHandler(w http.ResponseWriter, r *http.Request) {
CacheStorage.Delete("/")
resetCookies()
time.Sleep(2 * time.Second)
http.Redirect(w, r, "/", http.StatusSeeOther)
http.Redirect(w, r, basePath, http.StatusSeeOther)
}
func setupResponseError(w http.ResponseWriter, r *http.Request, a interface{}) {

View File

@ -137,7 +137,7 @@ HTML, BODY {
.chart-container {
position: relative;
height: 170px;
height: 190px;
width: 100%;
overflow: hidden;
}

View File

@ -72,7 +72,7 @@ let options = {
top: 0,
right: 0,
bottom: 0,
left: 0,
left: -10,
},
},
tooltip: {

View File

@ -134,7 +134,7 @@ HTML,BODY {
.chart-container {
position: relative;
height: 170px;
height: 190px;
width: 100%;
overflow: hidden;
}

View File

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at
// 2020-01-03 23:37:37.365614 +0000 UTC
// 2020-01-13 08:33:26.8055 +0000 UTC
//
// This contains the most recently Markdown source for the Statping Wiki.
package source