Fixed missing rewritten URLs in sharing services, closes #813