makes resources relative to root instead of individual pages