Skip to content

Commit

Permalink
hotfix intent param with dash (SAP#2443)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl authored Dec 17, 2021
1 parent 19e1bc9 commit 9f97585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/utilities/helpers/routing-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,9 @@ class RoutingHelpersClass {
getIntentObject(intentLink) {
const intentParams = intentLink.split('?intent=')[1];
if (intentParams) {
const elements = intentParams.split('-');
if (elements.length === 2) {
const firstDash = intentParams.indexOf('-');
if (firstDash > 0) {
const elements = [intentParams.slice(0, firstDash), intentParams.slice(firstDash + 1)];
// avoids usage of '-' in semantic object and action
const semanticObject = elements[0];
const actionAndParams = elements[1].split('?');
Expand Down

0 comments on commit 9f97585

Please sign in to comment.