← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1133048] Re: Region switcher does not pre-select the Region when there is a special character

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1133048

Title:
  Region switcher does not pre-select the Region when there is a special
  character

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  The region is not pre-selected in the pop-up opened by the region
  switcher.

  The issue occurs if there is a special character in the region name.

  Existing code:
    <a class="ajax-modal" href="{% url login %}?region={{ region.endpoint }}">{{ region.name }}</a>

  Suggested fix, add urlencode filter:
    <a class="ajax-modal" href="{% url login %}?region={{ region.endpoint|urlencode }}">{{ region.name }}</a>

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1133048/+subscriptions