Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect to newly translate page's edit view when submitting a translation for a single locale #518

Merged
merged 5 commits into from
Feb 10, 2022

Commits on Feb 8, 2022

  1. Redirect to page edit view when submitting for a single locale

    When an editor decides to submit a page for translation and only chooses
    one locale, they are redirected to the new translated page's edit view.
    mixxorz committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    183c385 View commit details
    Browse the repository at this point in the history
  2. Improve implementation

    mixxorz committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    1b856fc View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2022

  1. Merge if statements

    mixxorz committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    7c3ffae View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2022

  1. Do not pass next URL for the default "Translate this page" link

    This ensures that by default, the submit translation view redirects to
    where it's supposed to go:
    
    * When translating to one locale, go to the edit page of the new
      page/snippet
    * When translating to multiple locales, go back to the parent page's
      explore view
    
    The ability to route to an explicit "next" URL is kept if for some
    reason we wanted to redirect the user to a non-default location.
    mixxorz committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    131880d View commit details
    Browse the repository at this point in the history
  2. Update tests

    mixxorz committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    259bdde View commit details
    Browse the repository at this point in the history