change url to baseurl to support running rake preview