diff --git a/Pages/Dashboard.razor b/Pages/Dashboard.razor index 875510e..af69335 100644 --- a/Pages/Dashboard.razor +++ b/Pages/Dashboard.razor @@ -32,7 +32,7 @@
- +
@@ -49,6 +49,10 @@ private String GetAbsoluteUri() { - return NavigationManager.ToAbsoluteUri("/aff/").ToString() + @UserService.GetLoggedUser().GetId(); + //Detect if it's from localhost or online, change the uri depending of that + + + return NavigationManager.BaseUri.ToString() + "aff/" + @UserService.GetLoggedUser().GetId(); + //return NavigationManager.ToAbsoluteUri("/aff/").ToString() + @UserService.GetLoggedUser().GetId(); } } \ No newline at end of file