Fixing bug and passing roomname in pathname of url instead of as query