Fixed a bug related to redirection to incorrect url on change of language. Still hardcoded (probably need a refactor of this)

This commit is contained in:
M.Ravi 2017-06-06 04:22:03 +05:30
commit 474e0ddc95
2 changed files with 8 additions and 66 deletions

View file

@ -76,14 +76,14 @@
<select class="selectpicker" data-width="fit" onchange="location = this.value;" style="margin-top:10px;">
{% if LANGUAGE_CODE == 'en-us'%}
<option selected="selected" value="{{base_url}}/en-us/datacenterlight/pricing-success/">English</option>
<option selected="selected" value="{{base_url}}/en-us/datacenterlight/order-success/">English</option>
{% else %}
<option value="{{base_url}}/en-us/datacenterlight/pricing-success/">English</option>
<option value="{{base_url}}/en-us/datacenterlight/order-success/">English</option>
{% endif %}
{% if LANGUAGE_CODE == 'de'%}
<option selected="selected" value="{{base_url}}/de/datacenterlight/pricing-success/">Deutsch</option>
<option selected="selected" value="{{base_url}}/de/datacenterlight/order-success/">Deutsch</option>
{% else %}
<option value="{{base_url}}/de/datacenterlight/pricing-success/">Deutsch</option>
<option value="{{base_url}}/de/datacenterlight/order-success/">Deutsch</option>
{% endif %}
</select>