fixes broken parameters handle

Sorry, previous pull request brokes url when there is ?v=ID parameter. Fix