convert local links to proper theme links