-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix custom event redirect #17870
base: main
Are you sure you want to change the base?
Fix custom event redirect #17870
Conversation
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
@@ -21,7 +21,7 @@ export const substituteVariables = ( | |||
} | |||
const identifier = getFieldIdentifier(field); | |||
if (identifier.toLowerCase() === variable.toLowerCase()) { | |||
eventTypeUrl = eventTypeUrl.replace(`{${variable}}`, slugify(response[key].value.toString() || "")); | |||
eventTypeUrl = eventTypeUrl.replace(`{${variable}}`, slugify(response[key].label.toString() || "")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value is the option UID, we need label.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed #123
This PR is being marked as stale due to inactivity. |
This PR is being marked as stale due to inactivity. |
This PR is being marked as stale due to inactivity. |
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist