Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-09-24 20:51:01 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-09-24 20:51:01 +0300
commit5822758b7c2431f8f952432a4e67cd0c2c6237e1 (patch)
tree32e5719510735acd671afaeaef76de6de3b384aa /sub/subService.go
parent49430b39919867b4e0bbdcab9e127daca37c3d47 (diff)
tiny changes
Diffstat (limited to 'sub/subService.go')
-rw-r--r--sub/subService.go4
1 files changed, 2 insertions, 2 deletions
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,