use portal_url for url variables

@ninfaj we should use the portal_url for portalurl and themeurl not the path.

The path is not an url. Also it can cause problem because the path and url mustn't be the same and us get a 404