@ -75,7 +75,7 @@
</a>
</li>
<li class="nav-item" role="none">
<a href="{{ config["WEB_ADMIN"] }}/antispam" data-clicked="{{ url_for('.antispam') }}" target="_blank" class="nav-link" role="menuitem">
<a href="{{ config["WEB_ADMIN"] }}/antispam/" data-clicked="{{ url_for('.antispam') }}" target="_blank" class="nav-link" role="menuitem">
<i class="nav-icon fas fa-trash-alt"></i>
<p>{% trans %}Antispam{% endtrans %}</p>
@ -33,7 +33,6 @@ def webmail():
def client():
return flask.render_template('client.html')
@ui.route('/antispam', methods=['GET'])
@ui.route('/webui_antispam', methods=['GET'])
def antispam():
return flask.render_template('antispam.html')
@ -186,7 +186,7 @@ http {
expires $expires;
}
location ~ {{ WEB_ADMIN }}/antispam/ {
location {{ WEB_ADMIN }}/antispam {
rewrite ^{{ WEB_ADMIN }}/antispam/(.*) /$1 break;
auth_request /internal/auth/admin;
proxy_set_header X-Real-IP "";