Skip to content

Commit 015ff29

Browse files
committed
Add better handling for file URIs
1 parent cca4635 commit 015ff29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/switchers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const _navigate_to_first_existing = (urls) => {
8787

8888
const _on_version_switch = (event) => {
8989
if (_IS_LOCAL) return;
90+
9091
const selected_version = event.target.value;
9192
// English has no language prefix.
9293
const new_prefix_en = `/${selected_version}/`;
@@ -111,6 +112,7 @@ const _on_version_switch = (event) => {
111112

112113
const _on_language_switch = (event) => {
113114
if (_IS_LOCAL) return;
115+
114116
const selected_language = event.target.value;
115117
// English has no language prefix.
116118
const new_prefix =

0 commit comments

Comments
 (0)