Skip to content

Commit

Permalink
Fixed the auto content update. The route encoding on the client and s…
Browse files Browse the repository at this point in the history
…erver side was not the same and so the urls did not match.
  • Loading branch information
andreaskoch committed Jul 25, 2013
1 parent f9df3be commit 00088e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ func getRequestedPathFromRequest(r *http.Request) string {
}

func normalizeRoute(route string) string {
return strings.ToLower(route)
return strings.ToLower(util.DecodeUrl(route))
}
2 changes: 1 addition & 1 deletion themes/themefiles/autoupdatejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var Autoupdate = (function () {
*/
var getCurrentRoute = function() {
var url = document.location.pathname;
return decodeURI(url.replace(/^\/+/, ""));
return url.replace(/^\/+/, "");
};
/**
Expand Down

0 comments on commit 00088e3

Please sign in to comment.