Skip to content

Commit

Permalink
fix trailing / again
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Jan 29, 2018
1 parent c798c01 commit 12314a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions app.moon
Expand Up @@ -38,9 +38,7 @@ class extends lapis.Application
@title = @post.title
return render: "posts.view", content_type: "text/html; charset=utf-8"
else
-- return @default_route(@)
@title = "404 - Not Found"
return render: "404", status: 404
@app.handle_404(@)

-- Legacy redirects
"/submit": => redirect_to: @url_for "ksp_submit_crafts"
Expand Down
2 changes: 2 additions & 0 deletions nginx.conf
Expand Up @@ -34,6 +34,8 @@ http {

lua_code_cache ${{CODE_CACHE}};

rewrite ^/(.*)/$ /$1 permanent;

location / {
default_type text/html;
set $_url '';
Expand Down

0 comments on commit 12314a5

Please sign in to comment.