Post Login Redirect with action

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.