diff options
Diffstat (limited to 'zzcxz.cgi')
-rwxr-xr-x | zzcxz.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -271,7 +271,7 @@ local page_template = template [[ $actions </ul> ]] -map["^/g/(%w%w%w%w%w)/?$"] = function(p) +map["^/g/(%w%w%w%w%w)$"] = function(p) local page = load_page(p) if not page then return not_found() end local _, directives = convert_markup(page.content) @@ -320,6 +320,10 @@ map["^/g/(%w%w%w%w%w)/?$"] = function(p) end end +map["^/g/(%w%w%w%w%w)/$"] = function(p) + return redirect('/g/'..p) +end + local edit_template = template [[ $content <hr id="what"/> |