diff --git a/src/Maui/Prism.Maui/Navigation/Builder/NavigationBuilder.cs b/src/Maui/Prism.Maui/Navigation/Builder/NavigationBuilder.cs index 6dac61f78..f3f02fda8 100644 --- a/src/Maui/Prism.Maui/Navigation/Builder/NavigationBuilder.cs +++ b/src/Maui/Prism.Maui/Navigation/Builder/NavigationBuilder.cs @@ -53,11 +53,11 @@ public INavigationBuilder AddParameter(string key, object value) return this; } - public async Task GoBackToAsync() - { - var name = NavigationBuilderExtensions.GetNavigationKey(this); - return await _navigationService.GoBackToAsync(name, _navigationParameters); - } + public Task GoBackToAsync() => + GoBackToAsync(NavigationBuilderExtensions.GetNavigationKey(this)); + + public Task GoBackToAsync(string name) => + _navigationService.GoBackToAsync(name, _navigationParameters); public Task NavigateAsync() {