Fix issue with version 3 in docs version list (#74089)
Previously would subsitute the "3" in "s3" instead of the version location in the URL
This commit is contained in:
parent
9ba6cf9a72
commit
325ccf22fe
1 changed files with 3 additions and 3 deletions
|
@ -13,10 +13,10 @@
|
|||
if ( "{{ slug }}" == "{{ current_version }}" ) {
|
||||
option.selected = true;
|
||||
}
|
||||
if (current_url.search("{{ current_version }}") > -1) {
|
||||
option.value = current_url.replace("{{ current_version }}","{{ slug }}");
|
||||
if (current_url.search("/{{ current_version }}/") > -1) {
|
||||
option.value = current_url.replace("/{{ current_version }}/","/{{ slug }}/");
|
||||
} else {
|
||||
option.value = current_url.replace("latest","{{ slug }}");
|
||||
option.value = current_url.replace("/latest/","/{{ slug }}/");
|
||||
}
|
||||
x.add(option);
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue