you are assuming here that the prefix have a leading slash... but if this is not the case, maybe adding someting like this:

```python
if bokeh_app.url_prefix.startswith("/"):
    bokeh_app.url_prefix[1:] # strip of leading slash
else:
    bokeh_app.url_prefix
```
helps...