fixing path to be from url