construct url base on hostname
tuning chat page style