fix path from url - cut query