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