Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Redirect a global URL request to translated version, if available #5183

@mshmsh5000

Description

@mshmsh5000

User story (primary): anonymous -> 301

  • If I am an anonymous visitor,
  • and I am making a request from a country where we provide translated content (e.g., Mexico),
  • and I request a bare URL (e.g., /campaigns/sample),
  • and there is a translation available (e.g., /voluntario/ejemplo),
  • then issue a 301 redirect to the translation's URL.

User story (secondary): authenticated -> 302

  • If I am an authenticated visitor,
  • and my profile includes a language preference,
  • and I request a bare URL (e.g., /campaigns/sample),
  • and there is a translation available (e.g., /voluntario/ejemplo),
  • then issue a 302 redirect to the translation's URL.

Clues

  • Custom logic here, based on the stock Translation Redirect behavior
  • [https://www.drupal.org/project/multilink](MultiLink Redirect), "A module which might save a lot of work...if you have content in two or more languages."

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions