ant-design / ant-design/pro-components
🐛[BUG][LOGINFORM] Mozilla Firefox not support redirect to another page with any clicked button.
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
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

### 🏞 Expected results
Redirect to another website like Chromium browser.
### © Version information
- ProComponents version: 2.7.0
- umi version 4.1.8
- Browser environment [Mozilla Firefox]
- Development environment [e.g. mac OS]
Contributor guide
Research direction
Start with the LoginForm/LoginFormPage entry point in a project generated with ant-design-pro, reproducing the redirect from a logo action or onFinish callback. Compare Firefox with Chromium using the reported window.location.href and window.open cases. Done means a button redirects to another website on the first click in Firefox, without repeated reloads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100