mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Automatically redirect on documentation for exact matches
This commit is contained in:
parent
2fb42772c6
commit
1ad7712fde
|
@ -147,6 +147,7 @@ function updateSearch() {
|
||||||
} else {
|
} else {
|
||||||
exactMatch.style.display = "";
|
exactMatch.style.display = "";
|
||||||
buildList(null, exactList, [destination, destinationu]);
|
buildList(null, exactList, [destination, destinationu]);
|
||||||
|
return destinationu[0];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
contentDiv.style.display = "";
|
contentDiv.style.display = "";
|
||||||
|
@ -169,4 +170,8 @@ if (query) {
|
||||||
searchBox.value = query;
|
searchBox.value = query;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSearch();
|
var exactUrl = updateSearch();
|
||||||
|
var redirect = getQuery('redirect');
|
||||||
|
if (exactUrl && redirect != 'no') {
|
||||||
|
window.location = exactUrl;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user