adapt links for websocket