diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py
index fc955e30d4499124534813c65de15fd3fb27f738..3de4fdc99f81479945a8c10804ffd66b5a6041c5 100644
--- a/homeassistant/components/frontend/__init__.py
+++ b/homeassistant/components/frontend/__init__.py
@@ -109,8 +109,6 @@ def _handle_get_local(handler, path_match, data):
     """
     req_file = util.sanitize_path(path_match.group('file'))
 
-    path = os.path.join(get_default_config_dir(), 'www', req_file)
-    if not os.path.isfile(path):
-        return False
+    path = handler.server.hass.config.path('www', req_file)
 
     handler.write_file(path)