fix bug with urls when project located in subdirectory