import ‘./App.css’;
import { useState } from ‘react’;
import ‘./App.css’;
import { useState } from ‘react’;
function App() {
const searchParams = new URLSearchParams(document.location.search)
const state = searchParams.get(‘state’)
const [ continueURL ] = useState(http://localhost:3001/continue?state=${state})
return (
<>
Special Form Login
NGS Login Process
<form>
<label htmlFor="username">Username:</label>
<input type="text" id="username" name="username" />
<label htmlFor="password">Password:</label>
<input type="password" id="password" name="password" />
<button type="submit"><a href={continueURL}>Log In</a></button>
</form>
</>
);
}
export default App;
using react to have a form, how to go back to the original page after redirect to external page?
response: 404: Not Found
BTW i am using the sample apps from auh0 to redirect to external page
You can utilize the window.location object. Capture the current page URL before the redirect, and upon redirection completion, use window.location.href to navigate back to the original URL. You worked on your official site or not? If you worked on it then you try this another site for test.
Hey team! 
Since this topic touches Auth0 Actions, quick heads-up that we’re hosting an Ask Me Anything dedicated to Actions with Gaston Danilo Asis Sanchez, Senior Technical Product Manager. We’ll cover practical usage, new capabilities like Transaction Metadata and Actions Types, plus a peek at what’s next. 
- Submit questions now through Aug 26

- Get detailed written answers live on Aug 27, 9–11 AM PT

Earn community points + a badge
. If you’re exploring how Actions can streamline your auth flows, this is a great time to get direct guidance from the team.
Join the AMA & drop your questions here: August 27 Auth0 Community Ask Me Anything: Actions
Dawid