From 954e30d89fbb0b491bc206ffffb540a8f1aeb4b7 Mon Sep 17 00:00:00 2001 From: Michael Atwood Date: Tue, 30 Jun 2020 16:01:16 -0700 Subject: [PATCH] Save url parameter action segments --- Oqtane.Client/Modules/ModuleBase.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Oqtane.Client/Modules/ModuleBase.cs b/Oqtane.Client/Modules/ModuleBase.cs index 1f6d38eb..236fe779 100644 --- a/Oqtane.Client/Modules/ModuleBase.cs +++ b/Oqtane.Client/Modules/ModuleBase.cs @@ -122,7 +122,7 @@ namespace Oqtane.Modules var templateSegments = parameterTemplate.Split('/', StringSplitOptions.RemoveEmptyEntries); var parameters = PageState.UrlParameters.Split('/', StringSplitOptions.RemoveEmptyEntries); - + var actionId = 1; if (parameters.Length == templateSegments.Length) { for (int i = 0; i < parameters.Length; i++) @@ -131,6 +131,8 @@ namespace Oqtane.Modules { if (templateSegments[i] == parameters[i]) { + urlParameters.TryAdd("action" + actionId, parameters[i]); + actionId += 1; } else if (templateSegments[i].StartsWith("{") && templateSegments[i].EndsWith("}")) {