Fix root url generation in share links