Skip to content
Permalink
Browse files

base_path changes

  • Loading branch information
hunterlong committed Jan 13, 2020
1 parent 217a454 commit 72f1889a9479042ea04a9d9efed247e1460812fb
Showing with 11 additions and 11 deletions.
  1. +1 −1 handlers/api.go
  2. +2 −2 handlers/dashboard.go
  3. +1 −1 handlers/messages.go
  4. +3 −3 handlers/setup.go
  5. +1 −1 source/css/base.css
  6. +1 −1 source/js/charts.js
  7. +1 −1 source/scss/base.scss
  8. +1 −1 source/wiki.go
@@ -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) {
@@ -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()
@@ -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()
@@ -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{}) {

Some generated files are not rendered by default. Learn more.

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

.chart-container {
position: relative;
height: 170px;
height: 190px;
width: 100%;
overflow: hidden;
}

Some generated files are not rendered by default. Learn more.

0 comments on commit 72f1889

Please sign in to comment.
You can’t perform that action at this time.