jupyter / jupyter/notebook

Notebook base_url configuration always keeps "/" even when configured with empty string

Open
#3,663 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Hi,

I am trying to make the html and other served files by the notebook relative to the entire path. However, the **base_url** configuration always results on the notebook serving files with "/" as the first character.
The html code below is the result of using *jupyter notebook --NotebookApp.base_url=""*
```

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; first reproduce the behavior with `jupyter notebook --NotebookApp.base_url=""` and inspect how the NotebookApp builds links for served HTML and static files. Done means an empty base_url produces relative links without a leading slash and still supports the described reverse-proxy use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.