liquid_feedback_frontend
changeset 1837:ed156969a447
Handle selecting different unit in issue filters
author | bsw |
---|---|
date | Thu Feb 03 12:56:15 2022 +0100 (2022-02-03) |
parents | 1dad272c08eb |
children | bee9e998fa4d |
files | app/main/index/index.lua |
line diff
1.1 --- a/app/main/index/index.lua Thu Feb 03 12:44:02 2022 +0100 1.2 +++ b/app/main/index/index.lua Thu Feb 03 12:56:15 2022 +0100 1.3 @@ -27,8 +27,13 @@ 1.4 if area_id then 1.5 area = Area:by_id(area_id) 1.6 if not area or (unit and area.unit_id ~= unit.id) then 1.7 - execute.view { module = "index", view = "404" } 1.8 - request.set_status("404 Not Found") 1.9 + request.redirect{ 1.10 + external = encode.url{ 1.11 + module = "index", view = "index", params = { 1.12 + unit = unit_id 1.13 + } 1.14 + } 1.15 + } 1.16 return 1.17 end 1.18 area:load_delegation_info_once_for_member_id(app.session.member_id)