CLICKHOUSE-2936: temporary client-side redirect

This commit is contained in:
Ivan Blinkov 2017-05-30 19:01:13 +03:00
parent 743160d5a1
commit ba7a7058fb

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);