WeblateOrg / WeblateOrg/weblate
Resetting translations in a component to upstream gives Page Not Found(404) error (Without push enabled)
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 1.4k
- Avg merge
- 9h 53m
- Merged PRs (30d)
- 395
Description
**Describe the bug**
To reset all changes in a language in a component, I go to repository Manage -> Repository Maintainence
I press "Reset" button. It leads me to a url of the following format:
localhost:8000/projects/project_name/component_name/language_code/#repository
which is a URL no longer bound to any view, if all the translations of a particular language are reset.
Although if I go back to the project, it does show me the message that "All changes have been reset", so actually Reset is working fine, just that if after resetting, there is nothing left, it should redirect to the project url, instead of language url.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to Project -> Component
2. Start New Translation. Choose language and continue.
3. Go to the translations and translate any one string.
4. Go to language -> Manage -> Repository Maintenance
5. Reset
**Expected behavior**
If after resetting, all the translations of a language are gone (hence the language itself is removed from the component), it should redirect to project URL.
**Server configuration and status**
* Weblate: weblate-4.1.1-247-gafcd25bb6f
* Django: 3.0.7
Contributor guide
Assessment
This issue has not been assessed yet.