ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.04k stars 1.29k forks source link

🐛[BUG][LOGINFORM] Mozilla Firefox not support redirect to another page with any clicked button. #8299

Open haccoco99999 opened 1 month ago

haccoco99999 commented 1 month ago

Hi. I'm stuck at redirect to another page at LoginForm/LoginFormPage on Mozilla Firefox browser. When i set to redirect in logo actions or onFinish function, the page will reload. However, if i clicked multiple times after multiple reload , it would redirect.

I used window.location.href = {someLink} and window.open(link,'_self')

📷 Steps to reproduce

I built my project by ant-design-pro

use npm

npm i @ant-design/pro-cli -g pro create myapp set redirect with any button/icons on LoginForm component

Screenshot from 2024-04-11 16-33-55

🏞 Expected results

Redirect to another website like Chromium browser.

© Version information