socketio / socket.io-admin-ui

Admin UI for Socket.IO
https://admin.socket.io
MIT License
358 stars 95 forks source link

Support relative links in index.html #41

Closed Thomas-1985 closed 2 years ago

Thomas-1985 commented 2 years ago

Hi

I am serving the ui files in my Express app via app.use(express.static(path.resolve('public')));

in a subdirectory called socket.ui. With the index.html provided this doesn't work as the links to css, webpack etc. start with /

If you could change it to relative links, this should work.

Best, Thomas

darrachequesne commented 2 years ago

That sounds reasonable :+1:

darrachequesne commented 2 years ago

This was implemented in https://github.com/socketio/socket.io-admin-ui/commit/fdec2ce17bf7cad77a04e8eef42a26104b6a05b8, included in version 0.4.0.

Have a great day!