Can this be written as 
```python
        url_parts[:3] = list(
            urlsplit(append_segments(get_url_root(), url_parts[2].lstrip('/'))))[:3]
```
for brevity?