From 2c6caac4063d60532b79c35cd1147e48b1c22ad4 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 1 Aug 2025 09:57:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=20null=20?= =?UTF-8?q?=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.PdfViewer/PdfViewer.razor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.cs b/src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.cs index 9e1accca..d3b53e57 100644 --- a/src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.cs +++ b/src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.cs @@ -88,13 +88,13 @@ protected override async Task OnAfterRenderAsync(bool firstRender) private string GetAbsoluteUri(string? url) { - url ??= string.Empty; - if (string.IsNullOrEmpty(url) || !UseGoogleDocs) + if (string.IsNullOrEmpty(url)) { - return $"{url}#page={PageIndex}"; + return string.Empty; } + var uri = NavigationManager.ToAbsoluteUri(url); - return uri.AbsoluteUri; + return $"{uri.AbsoluteUri}#page={PageIndex}"; } /// From 0f1f23eaf32a6588f7b967da2afbcc72978282b1 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 1 Aug 2025 09:57:21 +0800 Subject: [PATCH 2/2] chore: bump version 9.0.6 --- .../BootstrapBlazor.PdfViewer/BootstrapBlazor.PdfViewer.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.PdfViewer/BootstrapBlazor.PdfViewer.csproj b/src/components/BootstrapBlazor.PdfViewer/BootstrapBlazor.PdfViewer.csproj index eb120d22..d81ff390 100644 --- a/src/components/BootstrapBlazor.PdfViewer/BootstrapBlazor.PdfViewer.csproj +++ b/src/components/BootstrapBlazor.PdfViewer/BootstrapBlazor.PdfViewer.csproj @@ -1,7 +1,7 @@ - 9.0.5 + 9.0.6