fix(routing-forms): correct variable encoding and URL construction in Routing Forms Event Redirect Custom URLs (#25499)
* fix: change slugification to uri encoding * fix: add conditional joiner symbol between event type redirect url and all other search params * fix: update integration test to expect encoded variable * test: add tests for query parameters joiner logic
This commit is contained in:
1 parent
98b862c048
commit
e4a6b97017
5 files changed
+68
-21
No files matched your search
@@ -452,7 +452,8 @@ describe("TestFormDialog", () => {
|
||||
fireEvent.click(screen.getByText("submit"));
|
||||
|
||||
// Verify the URL shows the substituted value, not the variable
|
||||
expect(screen.getByTestId("test-routing-result")).toHaveTextContent("/team/sales-team/meeting");
|
||||
expect(screen.getByTestId("test-routing-result")).toHaveTextContent("/team/Sales%20Team/meeting");
|
||||
expect(screen.getByTestId("test-routing-result")).not.toHaveTextContent("/team/sales-team/meeting");
|
||||
expect(screen.getByTestId("test-routing-result")).not.toHaveTextContent("{name}");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user