Fix callback url. Cut off .../ws-abc, /settings ... in pgtURL