Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Bug 1362438: additional redirects from SCL3 Apache to Django #4231

Merged
merged 3 commits into from Aug 3, 2017

Commits on Aug 3, 2017

  1. Copy the full SHA
    a824448 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7bbcbfa View commit details
    Browse the repository at this point in the history
  3. bug 1362438: Refactor locale redirects

    Add helper function to explicitly set locale_prefix and prepend_locale
    to False for "regular" redirects, to avoid matching on non-locale
    prefixes.
    
    Add helper function locale_redirect to set locale_prefix to True, and
    default prepend_locale to True. Adjust locale redirect patterns to rely
    on locale matching in redirect_urls library.
    
    The /Learn topic has moved to /docs/Learn, but this redirect is
    enforced in Apache rules. Adding a TODO to change the redirect after AWS
    move.
    
    Adjusted some test patterns to use valid locales, so that tests will
    pass against Apache in SCL3 and locally.
    jwhitlock committed Aug 3, 2017
    Copy the full SHA
    17ec129 View commit details
    Browse the repository at this point in the history