Fix incorrect login redirect (#64)

This commit is contained in:
Alex Ling
2020-06-09 14:46:45 +00:00
parent a0e5a03052
commit 5cd6f3eacb
3 changed files with 10 additions and 4 deletions
+5
View File
@@ -2,6 +2,11 @@ require "big"
IMGS_PER_PAGE = 5
UPLOAD_URL_PREFIX = "/uploads"
STATIC_DIRS = ["/css", "/js", "/img", "/favicon.ico"]
def requesting_static_file(env)
request_path_startswith env, STATIC_DIRS
end
macro layout(name)
base_url = Config.current.base_url