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.

Hey there!

As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!