Skip to content

Commit 5c73a1a

Browse files
committed
add url if status is not ok
1 parent 8ca2b0f commit 5c73a1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ function assign_href( a, url, path ) {
55
if( response.ok ){
66
a.href = url + "/" + path;
77
}
8+
else {
9+
a.href = url;
10+
}
811
}).catch( error => {
912
a.href = url;
1013
});

0 commit comments

Comments
 (0)