Skip to content

Commit

Permalink
base_path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Jan 13, 2020
1 parent 217a454 commit 72f1889
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion handlers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions handlers/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion handlers/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions handlers/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand All @@ -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()
Expand Down Expand Up @@ -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{}) {
Expand Down
2 changes: 1 addition & 1 deletion source/css/base.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/js/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ let options = {
top: 0,
right: 0,
bottom: 0,
left: 0,
left: -10,
},
},
tooltip: {
Expand Down
2 changes: 1 addition & 1 deletion source/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ HTML,BODY {

.chart-container {
position: relative;
height: 170px;
height: 190px;
width: 100%;
overflow: hidden;
}
Expand Down
2 changes: 1 addition & 1 deletion source/wiki.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72f1889

Please sign in to comment.