modified to separate base_url from kernel_path. Allows us to specify a
full href for base_url