# elementor/3.8.0-beta1/app/assets/js/pages/index.js

Elementor Website Builder – more than just a page builder, version 3.8.0-beta1. 14 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/assets/js/pages/index.js
- Raw: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/raw/app/assets/js/pages/index.js
- Modified: 2022-09-19T16:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/assets/js/pages/index.js#L10-L20`.

```javascript
import { Redirect } from '@reach/router';
import actionsMap from 'elementor-app/url-actions/actions-map';

export default function Index() {
	const urlSearchParams = new URLSearchParams( window.location.search ),
		queryParams = Object.fromEntries( urlSearchParams.entries() ),
		// The 'action' query param is translated into a route URL.
		url = actionsMap[ queryParams.action ] || elementorAppConfig.menu_url.split( '#' )?.[ 1 ];

	return (
		<Redirect to={ url || '/not-found' } noThrow={ true } />
	);
}

```
