Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcanosantana authored Nov 27, 2023
1 parent d914f47 commit d2b4ba6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 🖍️

0 comments on commit d2b4ba6

Please sign in to comment.