Fix invitation - now works with subdir instead of subdomain links

Please help to review

T