PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.0-beta1
Elementor Website Builder – more than just a page builder v3.8.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / app / assets / js / pages / index.js

index.js in Elementor Website Builder – more than just a page builder 3.8.0-beta1, at app/assets/js/pages/index.js

14 lines 509 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Redirect } from '@reach/router';
2 import actionsMap from 'elementor-app/url-actions/actions-map';
3
4 export default function Index() {
5 const urlSearchParams = new URLSearchParams( window.location.search ),
6 queryParams = Object.fromEntries( urlSearchParams.entries() ),
7 // The 'action' query param is translated into a route URL.
8 url = actionsMap[ queryParams.action ] || elementorAppConfig.menu_url.split( '#' )?.[ 1 ];
9
10 return (
11 <Redirect to={ url || '/not-found' } noThrow={ true } />
12 );
13 }
14