diff --git a/.github/workflows/wpf-release.yml b/.github/workflows/wpf-release.yml
index deda62c9..9fe2cb12 100644
--- a/.github/workflows/wpf-release.yml
+++ b/.github/workflows/wpf-release.yml
@@ -68,7 +68,7 @@ jobs:
-prerelease | select-object -first 1
Push-Location "src/Sidekick.Wpf"
- & $msBuildPath Sidekick.Wpf.csproj /target:Publish /property:PublishProfile=ClickOnceBeta /property:ApplicationVersion=$version
+ & $msBuildPath Sidekick.Wpf.csproj /target:Publish /property:PublishProfile=ClickOnceRelease /property:ApplicationVersion=$version
Pop-Location
- name: Git - Setup
diff --git a/src/Sidekick.Common.Ui/Views/CurrentView.cs b/src/Sidekick.Common.Ui/Views/CurrentView.cs
index 762f0ca0..e397fcfb 100644
--- a/src/Sidekick.Common.Ui/Views/CurrentView.cs
+++ b/src/Sidekick.Common.Ui/Views/CurrentView.cs
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Components;
-using Sidekick.Common.Exceptions;
namespace Sidekick.Common.Ui.Views;
@@ -23,7 +22,7 @@ public class CurrentView(
public string Url => navigationManager.Uri;
///
- public string? Key => Url.Split('/', '\\').FirstOrDefault(x => !string.IsNullOrEmpty(x));
+ public string? Key => new Uri(Url).AbsolutePath.Split('/', '\\').FirstOrDefault(x => !string.IsNullOrEmpty(x));
///
public SidekickView? Current { get; private set; }
diff --git a/src/Sidekick.Wpf/Properties/PublishProfiles/ClickOnceRelease.pubxml b/src/Sidekick.Wpf/Properties/PublishProfiles/ClickOnceRelease.pubxml
index b3bfe35c..dca552a0 100644
--- a/src/Sidekick.Wpf/Properties/PublishProfiles/ClickOnceRelease.pubxml
+++ b/src/Sidekick.Wpf/Properties/PublishProfiles/ClickOnceRelease.pubxml
@@ -20,7 +20,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
False
Any CPU
Sidekick
- bin\Release\net8.0-windows\win-x64\app.publish\
+ bin\publish\
bin\publish\
Sidekick
ClickOnce