linkerd2/web/srv
Risha Mars 1464470487
Include path prefix in location of js asset bundle (#959)
Problem
If you navigate directly to (or do a hard refresh on) a path with more than one segment, 
e.g. http://localhost:8084/namespaces/conduit, the dashboard js is not served. 
Pages with two paths have to be accessed by loading the dashboard on a different 
path and then clicking through.

When accessing the dashboard via conduit dashboard we append a path prefix so that 
we can connect using the k8s proxy. This means that moving the dashboard to serve 
images off relative paths won't work, because we need to serve images whether the 
dashboard is loaded from http://localhost:8084/namespaces/conduit or 
from http://localhost:8084/namespaces. 

Solution
Check whether we're serving the dashboard with the proxy url, and if we are, adjust
the url at which we serve the index bundle from.
I've also added a very manual override if the conduit logo can't be found at the usual url.
2018-05-16 15:41:50 -07:00
..
api_handlers.go Add namespace as a resource type in public-api (#760) 2018-04-13 16:53:01 -07:00
api_handlers_test.go Update web component to use new stat api (#753) 2018-04-12 17:35:03 -07:00
handlers.go Include path prefix in location of js asset bundle (#959) 2018-05-16 15:41:50 -07:00
handlers_test.go UI tweaks: sidebar collapse, latency formatting, table row spacing (#361) 2018-02-19 11:21:54 -08:00
server.go Include path prefix in location of js asset bundle (#959) 2018-05-16 15:41:50 -07:00
test_helpers.go Adds conduit-api check for status command (#140) 2018-01-12 15:35:22 -05:00