add function to get index url, fall back to default url