Skip to content

Commit

Permalink
Merge pull request #81 from newfold-labs/fix/PRESS2-236
Browse files Browse the repository at this point in the history
Send URL with hash route in EventsController
  • Loading branch information
arunshenoy99 authored Sep 23, 2022
2 parents a4ac331 + e8210ec commit 0aa900c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/RestApi/EventsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ public function send_event( \WP_REST_Request $request ) {

$event['data'] = $request->get_param( 'data' );

if ( ! empty( $event['data'] ) && ! empty( $event['data']['stepID'] ) ) {
$event['data']['page'] = \admin_url( '/index.php?page=nfd-onboarding#' . $event['data']['stepID'] );
}

$event_data_request = new \WP_REST_Request(
\WP_REST_Server::CREATABLE,
NFD_MODULE_DATA_EVENTS_API
Expand Down

0 comments on commit 0aa900c

Please sign in to comment.