use ctx_path in place of base_url