diff --git a/libs/web/luasrc/view/cbi/tblsection.htm b/libs/web/luasrc/view/cbi/tblsection.htm
index bee9bf80cb..d928791167 100644
--- a/libs/web/luasrc/view/cbi/tblsection.htm
+++ b/libs/web/luasrc/view/cbi/tblsection.htm
@@ -96,13 +96,13 @@ end
<%- if self.extedit then -%>
onclick="window.location='<%=self.extedit:format(section)%>'"
+ %> onclick="location.href='<%=self.extedit:format(section)%>'"
<%- elseif type(self.extedit) == "function" then
- %> onclick="window.location='<%=self:extedit(section)%>'"
+ %> onclick="location.href='<%=self:extedit(section)%>'"
<%- end
%> alt="<%:Edit%>" title="<%:Edit%>" />
<%- end; if self.addremove then %>
-
+
<%- end -%>
<%- end -%>