Skip to content

Commit

Permalink
Merge pull request jupyter-server#304 from Zsailer/urljoin
Browse files Browse the repository at this point in the history
replace urljoin with url_path_join in extensionapp
  • Loading branch information
blink1073 authored Sep 8, 2020
2 parents c7addf3 + bd53fd4 commit eb5e986
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions jupyter_server/extension/application.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
import re
import logging
from urllib.parse import urljoin

from jinja2 import Environment, FileSystemLoader

Expand Down Expand Up @@ -197,7 +196,7 @@ def _default_static_url_prefix(self):
static_url = "static/{name}/".format(
name=self.name
)
return urljoin(self.serverapp.base_url, static_url)
return url_path_join(self.serverapp.base_url, static_url)

static_paths = List(Unicode(),
help="""paths to search for serving static files.
Expand Down
1 change: 0 additions & 1 deletion jupyter_server/extension/handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from urllib.parse import urljoin
from jupyter_server.base.handlers import FileFindHandler
from jinja2.exceptions import TemplateNotFound

Expand Down

0 comments on commit eb5e986

Please sign in to comment.