Resolve bug with full paths on permalink