From 5822758b7c2431f8f952432a4e67cd0c2c6237e1 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 24 Sep 2025 19:51:01 +0200 Subject: tiny changes --- sub/subService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sub/subService.go') diff --git a/sub/subService.go b/sub/subService.go index 77a60356..55bddf7f 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -1148,7 +1148,7 @@ func (s *SubService) joinPathWithID(basePath, subId string) string { // BuildPageData parses header and prepares the template view model. // BuildPageData constructs page data for rendering the subscription information page. -func (s *SubService) BuildPageData(subId string, hostHeader string, traffic xray.ClientTraffic, lastOnline int64, subs []string, subURL, subJsonURL string) PageData { +func (s *SubService) BuildPageData(subId string, hostHeader string, traffic xray.ClientTraffic, lastOnline int64, subs []string, subURL, subJsonURL string, basePath string) PageData { download := common.FormatTraffic(traffic.Down) upload := common.FormatTraffic(traffic.Up) total := "∞" @@ -1167,7 +1167,7 @@ func (s *SubService) BuildPageData(subId string, hostHeader string, traffic xray return PageData{ Host: hostHeader, - BasePath: "/", // kept as "/"; templates now use context base_path injected from router + BasePath: basePath, SId: subId, Download: download, Upload: upload, -- cgit v1.2.3