File tree Expand file tree Collapse file tree
src/Resources/themes/default/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 </a >
4040 <ul class =" dropdown-menu" >
4141 {% for version in project .versions -%}
42- <li {{ version == project .version ? ' class="active"' : ' ' }}><a href =" {{ path( ' ../ ' ~ version | url_encode ~ ' /index.html' ) }}" data-version =" {{ version }}" >{{ version .longname }}</a ></li >
42+ <li {{ version == project .version ? ' class="active"' : ' ' }}><a href =" {{ project. getBaseUrl () | replace ({ ' %version% ' : version }) ~ ' /index.html' }}" data-version =" {{ version }}" >{{ version .longname }}</a ></li >
4343 {% endfor -%}
4444 </ul >
4545 </li >
6969 <select class =" form-control" id =" version-switcher" name =" version" >
7070 {% for version in project .versions %}
7171 <option
72- value =" {{ path( ' ../ ' ~ version | url_encode ~ ' /index.html' ) }}"
72+ value =" {{ project. getBaseUrl () | replace ({ ' %version% ' : version }) ~ ' /index.html' }}"
7373 data-version =" {{ version }}" {{ version == project .version ? ' selected' : ' ' }}>{{ version .longname }}</option >
7474 {% endfor %}
7575 </select >
You can’t perform that action at this time.
0 commit comments