diff --git a/lib/matplotlib/backends/backend_webagg.py b/lib/matplotlib/backends/backend_webagg.py
index c55767778439..928b10deb6fc 100644
--- a/lib/matplotlib/backends/backend_webagg.py
+++ b/lib/matplotlib/backends/backend_webagg.py
@@ -262,7 +262,7 @@ def __init__(self, url_prefix=''):
(url_prefix + r'/?', self.AllFiguresPage,
{'url_prefix': url_prefix}),
- (url_prefix + r'/mpl.js', self.MplJs),
+ (url_prefix + r'/js/mpl.js', self.MplJs),
# Sends images and events to the browser, and receives
# events from the browser
diff --git a/lib/matplotlib/backends/backend_webagg_core.py b/lib/matplotlib/backends/backend_webagg_core.py
index 9f93b2bb1bc8..1af46b891ffb 100644
--- a/lib/matplotlib/backends/backend_webagg_core.py
+++ b/lib/matplotlib/backends/backend_webagg_core.py
@@ -531,7 +531,7 @@ def get_javascript(cls, stream=None):
@classmethod
def get_static_file_path(cls):
- return os.path.join(os.path.dirname(__file__), 'web_backend', 'js')
+ return os.path.join(os.path.dirname(__file__), 'web_backend')
def _send_event(self, event_type, **kwargs):
payload = {'type': event_type}
diff --git a/lib/matplotlib/backends/web_backend/all_figures.html b/lib/matplotlib/backends/web_backend/all_figures.html
index 4d3d4cdaef93..4bcb7dc8b246 100644
--- a/lib/matplotlib/backends/web_backend/all_figures.html
+++ b/lib/matplotlib/backends/web_backend/all_figures.html
@@ -6,8 +6,8 @@
-
-
+
+
-
-
+
+