WICKET-5548 Websocket initialization URL is not valid when filter is not mapped to root.

(cherry picked from commit a601b4bc60f2aca781fe67d3d8dca8f554b4db4b)