From d2b4ba6727f1cfd078c42b2d73f8b84d7702f294 Mon Sep 17 00:00:00 2001 From: Miguel Cano Santana <55782155+miguelcanosantana@users.noreply.github.com> Date: Mon, 27 Nov 2023 04:04:47 +0100 Subject: [PATCH] Update README.md --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 64087ac..00a476b 100644 --- a/README.md +++ b/README.md @@ -120,23 +120,16 @@ The most interesting thing about blazor is that a Singleton doesn't seem to foll ### 📆 Second/Third day Having lost a lot of time the first day figuring out how everything worked, the second and third day were faster 🏎ïļ -The most difficult thing was creating an Uri having a path, because on localhost and deployment versions would behave differently. Finally made it with this code: +The most difficult thing was creating an Uri having a path, because on localhost and deployment versions would behave differently. Finally made it with this short code: ``` private String GetAbsoluteUri() { - //Detect if it's from localhost or online, change the uri depending of that String baseUri = NavigationManager.BaseUri.ToString(); - - if (baseUri.Contains("github.io")) - baseUri += "CirsaHackaton/"; - return baseUri + "aff/" + UserService.GetLoggedUser().GetId(); } ``` -That code gets path, and if it's from github adds the repo name, that was missing from the default bahaviour. - The final thing was improving a bit the styles, I fought a lot with *Bootstrap* ðŸĪš and some code bugs. Also writing this readme 🖍ïļ