File tree Expand file tree Collapse file tree
TelegramDownloader/Pages/Partials/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 101101 private bool _viewportDetected = false ;
102102 private const int MobileBreakpoint = 1920 ; // Custom breakpoint for mobile file manager
103103
104- // Use relative URLs to work correctly with reverse proxies (HTTP/HTTPS)
105- private string FileOperationsUrl => " / api/file/FileOperations" ;
106- private string UploadUrl => " / api/file/Upload" ;
107- private string DownloadUrl => " / api/file/Download" ;
108- private string GetImageUrl => " / api/file/GetImage" ;
104+ // Use NavigationManager.BaseUri to build absolute URLs that work with both direct access and reverse proxies
105+ private string FileOperationsUrl => $" { NavManager . BaseUri } api/file/FileOperations" ;
106+ private string UploadUrl => $" { NavManager . BaseUri } api/file/Upload" ;
107+ private string DownloadUrl => $" { NavManager . BaseUri } api/file/Download" ;
108+ private string GetImageUrl => $" { NavManager . BaseUri } api/file/GetImage" ;
109109
110110
111111 public List <ToolBarItemModel > Items = new List <ToolBarItemModel >(){
You can’t perform that action at this time.
0 commit comments