Skip to content

Commit

Permalink
no empty parameter if there are parameters in querystring
Browse files Browse the repository at this point in the history
  • Loading branch information
dhindrik committed Jun 28, 2023
1 parent a08acb5 commit 39fb21e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/TinyMvvm.Maui/TinyNavigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ public TinyNavigation()
/// <inheritdoc />
public async Task NavigateTo(string key)
{

//Check if there are parameters in the query string
if (key.Contains("?"))
{
var parts = key.Split("?");

if (parts[1].Length > 0)
{
await Shell.Current.GoToAsync(key);
return;
}
}


//If no querystring, add a empty parameter so OnParameterSet can be triggered
var parameters = new Dictionary<string, object>
{
{ "tinyEmpty", string.Empty }
Expand Down

0 comments on commit 39fb21e

Please sign in to comment.