Skip to content

Incorrect "The review state of this string has changed" using browser "Back" button #22918

Description

@dylankiss

Describe the issue

When translating an empty string, then going back and changing the translation, the editor is stuck with the message "The review state of this string has changed from Empty to Waiting for review while you were editing it. Reload the editor and review your changes before saving.".

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Open the translation editor on an empty string.
  2. Translate the string and click "Save and continue".
  3. Go back using the browser "Back" button.
  4. Change the translation and click either "Save" button.
  5. The screen is stuck with the message: "The review state of this string has changed from Empty to Waiting for review while you were editing it. Reload the editor and review your changes before saving."

Expected behavior

The save is recorded correctly.

Screenshots

No response

Exception traceback

How do you run Weblate?

Docker container

Weblate version

2026.11.2

Weblate deploy checks

Additional context

The issue is probably that the initial_state on the original form is not refreshed when using the browser back button.

Activity

  1. added
    Waiting for: Triage
    on Nov 18, 2026
  2. nijel commented on Nov 19, 2026

    @nijel
    Member

    You seem to use a reverse proxy that rewrites/discards Cache-Control HTTP headers. Browser that uses an outdated cache for a string that has been edited, so the error it shows is actually correct.

  3. added
    Waiting for: Community
    on Nov 19, 2026
  4. removed
    Waiting for: Triage
    on Nov 19, 2026
  5. dylankiss commented on Nov 19, 2026

    @dylankiss
    ContributorAuthor

    The translate view sent no Cache-Control in 2026.8 either (no never_cache on weblate.trans.views.edit.translate), and this flow worked there. The regression comes from #22292 (dbdc688, detect stale review states), released in 2026.11. The stale translationsum check has always exempted repeated edits by the same author (last_author != self.user). The new initial_state check has no such exemption, so re-saving your own string from a page restored by Back is now always rejected.

    Two possible fixes: apply the same same-author exemption to the state check, or add never_cache to the translate view so the browser can't serve a stale form.

  6. added
    Waiting for: Triage
    and removed
    Waiting for: Community
    on Nov 19, 2026
  7. nijel commented on Nov 24, 2026

    @nijel
    Member

    All authenticated views have headers to disable caching since 2b6f82d. The exemption still might be a useful addition, and #23018 does that.

  8. added theissue type on Nov 24, 2026
  9. added
    Area: Editing
    on Nov 24, 2026
  10. added
    Waiting for: Implementation
    on Nov 26, 2026
  11. added this to the 2026.12 milestone on Nov 26, 2026
  12. removed
    Waiting for: Triage
    on Nov 26, 2026
  13. added
    Waiting for: Release
    and removed
    Waiting for: Implementation
    on Nov 29, 2026
  14. github-actions commented on Nov 29, 2026

    @github-actions

    Thank you for your report — the issue has now been resolved.

    The fix has been merged into the repository and will be included in the upcoming Weblate 2026.12 release.

    • If you encounter any issues with the fix, please comment in this thread.
    • If you experience a similar but separate issue, open a new report so we can track it properly.
    • If you find Weblate helpful, consider supporting its development.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: EditingWaiting for: Release

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions