From ba7a7058fb00288a334b571fa2748a7b07c2996b Mon Sep 17 00:00:00 2001 From: Ivan Blinkov Date: Tue, 30 May 2017 19:01:13 +0300 Subject: [PATCH] CLICKHOUSE-2936: temporary client-side redirect --- doc/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/index.html b/doc/index.html index 762abfb741f..36ddf1eeaca 100644 --- a/doc/index.html +++ b/doc/index.html @@ -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);