Fix canonical & meta URLs. Closes #107

This commit is contained in:
Ian Renton
2026-03-09 21:00:23 +00:00
parent b6407b4f66
commit b0a7e4ea81
11 changed files with 30 additions and 26 deletions

View File

@@ -3,7 +3,7 @@ from datetime import datetime
import pytz
import tornado
from core.config import ALLOW_SPOTTING, WEB_UI_OPTIONS
from core.config import ALLOW_SPOTTING, WEB_UI_OPTIONS, BASE_URL
from core.constants import SOFTWARE_VERSION
from core.prometheus_metrics_handler import page_requests_counter
@@ -24,4 +24,4 @@ class PageTemplateHandler(tornado.web.RequestHandler):
# Load named template, and provide variables used in templates
self.render(self._template_name + ".html", software_version=SOFTWARE_VERSION, allow_spotting=ALLOW_SPOTTING,
web_ui_options=WEB_UI_OPTIONS)
web_ui_options=WEB_UI_OPTIONS, baseurl = BASE_URL, current_path=self.request.path)