mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 19:29:20 +01:00
Add deep URI rewriting for groups and settings pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
starttime = mg.time(true)
|
||||
hostname = pihole.hostname()
|
||||
-- Get name of script by matching whatever is after the last "/" in the URI
|
||||
scriptname = mg.request_info.request_uri:match("/([^/]*)$")
|
||||
scriptname = mg.request_info.request_uri:match(pihole.webhome().."(.*)$")
|
||||
-- Fall back to "index.lp" if no match is found (e.g. when accessing the root)
|
||||
if scriptname == nil or string.len(scriptname) == 0 then scriptname = "index.lp" end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user