Added prefix to relative paths

with a fixer function so they work when running on localhost