CLICKHOUSE-2936: temporary client-side redirect

This commit is contained in:
Ivan Blinkov 2017-05-30 19:01:13 +03:00 committed by alexey-milovidov
parent dc3a618d7a
commit cbccd655a9
1 changed files with 5 additions and 0 deletions

View File

@ -477,6 +477,11 @@ clickhouse-client
show_download_block();
}
var hostParts = window.location.host.split('.');
if (hostParts.length > 2) {
window.location.host = hostParts[0] + '.' + hostParts[1];
}
if (location.hash == "#feedback") {
var class_name = 'feedback_form';
block_visible[class_name] ? hideBlock(class_name) : showBlock(class_name);