You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Components/Components/src/NavigationManager.cs
+53-3
Original file line number
Diff line number
Diff line change
@@ -90,10 +90,46 @@ protected set
90
90
/// <param name="uri">The destination URI. This can be absolute, or relative to the base URI
91
91
/// (as returned by <see cref="BaseUri"/>).</param>
92
92
/// <param name="forceLoad">If true, bypasses client-side routing and forces the browser to load the new page from the server, whether or not the URI would normally be handled by the client-side router.</param>
publicvoidNavigateTo(stringuri,boolforceLoad)// This overload is for binary back-compat with < 6.0
94
+
=>NavigateTo(uri,forceLoad,replace:false);
95
+
96
+
/// <summary>
97
+
/// Navigates to the specified URI.
98
+
/// </summary>
99
+
/// <param name="uri">The destination URI. This can be absolute, or relative to the base URI
100
+
/// (as returned by <see cref="BaseUri"/>).</param>
101
+
/// <param name="forceLoad">If true, bypasses client-side routing and forces the browser to load the new page from the server, whether or not the URI would normally be handled by the client-side router.</param>
102
+
/// <param name="replace">If true, replaces the currently entry in the history stack. If false, appends the new entry to the history stack.</param>
/// <param name="uri">The destination URI. This can be absolute, or relative to the base URI
103
139
/// (as returned by <see cref="BaseUri"/>).</param>
104
140
/// <param name="forceLoad">If true, bypasses client-side routing and forces the browser to load the new page from the server, whether or not the URI would normally be handled by the client-side router.</param>
thrownewNotImplementedException($"The type {GetType().FullName} does not support supplying {nameof(NavigationOptions)}. To add support, that type should override {nameof(NavigateToCore)}(string uri, {nameof(NavigationOptions)} options).");
106
156
107
157
/// <summary>
108
158
/// Called to initialize BaseURI and current URI before these values are used for the first time.
// Copyright (c) .NET Foundation. All rights reserved.
2
+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
+
4
+
namespaceMicrosoft.AspNetCore.Components
5
+
{
6
+
/// <summary>
7
+
/// Additional options for navigating to another URI.
8
+
/// </summary>
9
+
publicreadonlystructNavigationOptions
10
+
{
11
+
/// <summary>
12
+
/// If true, bypasses client-side routing and forces the browser to load the new page from the server, whether or not the URI would normally be handled by the client-side router.
13
+
/// </summary>
14
+
publicboolForceLoad{get;init;}
15
+
16
+
/// <summary>
17
+
/// If true, replaces the currently entry in the history stack.
18
+
/// If false, appends the new entry to the history stack.
LoggerMessage.Define<string,bool>(LogLevel.Debug,newEventId(1,"RequestingNavigation"),"Requesting navigation to URI {Uri} with forceLoad={ForceLoad}");
LoggerMessage.Define<string,bool,bool>(LogLevel.Debug,newEventId(1,"RequestingNavigation"),"Requesting navigation to URI {Uri} with forceLoad={ForceLoad}, replace={Replace}");
LoggerMessage.Define<string,bool>(LogLevel.Debug,newEventId(2,"ReceivedLocationChangedNotification"),"Received notification that the URI has changed to {Uri} with isIntercepted={IsIntercepted}");
0 commit comments