We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9a285 commit 2c6caacCopy full SHA for 2c6caac
1 file changed
src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.cs
@@ -88,13 +88,13 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
88
89
private string GetAbsoluteUri(string? url)
90
{
91
- url ??= string.Empty;
92
- if (string.IsNullOrEmpty(url) || !UseGoogleDocs)
+ if (string.IsNullOrEmpty(url))
93
94
- return $"{url}#page={PageIndex}";
+ return string.Empty;
95
}
+
96
var uri = NavigationManager.ToAbsoluteUri(url);
97
- return uri.AbsoluteUri;
+ return $"{uri.AbsoluteUri}#page={PageIndex}";
98
99
100
/// <summary>
0 commit comments