We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740f657 commit 69389a7Copy full SHA for 69389a7
docs/js/instantsearch.js
@@ -31,7 +31,10 @@
31
const parsed_search_query = decodeURI(search_query.replace('+', ' '));
32
const search_page = (match = doc.location.search.match(/p=(\d*?)(&|$)/)) ? match[1] : 1;
33
const parsed_search_page = parseInt(search_page);
34
- const version = doc.location.pathname.split('/')[2];
+ let version = doc.location.pathname.split('/')[2];
35
+ if (!/^\d+\.\d+$/.test(version) && version !== 'latest') {
36
+ version = 'master';
37
+ }
38
const search = instantsearch({
39
indexName: 'ezplatform',
40
searchClient: algoliasearch('2DNYOU6YJZ', '21ce3e522455e18e7ee16cf7d66edb4b'),
0 commit comments