Use the actual group url as the invite url
Why use a separate URL to invite people to a group on mattermost?
It seems like there would only be an advantage to keeping the URLs separate if someone could visit a page without actually joining it, but that isn't the case.
When someone (for the first time) tries to use the URL that we see in the address bar when looking at the group they don't actually make it to the page. Instead they are redirected to the default home page.
Great suggestion Vincent! This is in fact fixed in v5.1 release coming on July 16th.
With that release, when the user clicks on a link to a specific channel outside of Mattermost, and goes through the account creation process, they will land on the channel they intended to view.
More details are included in this ticket: https://mattermost.atlassian.net/browse/MM-9479
If you see any issues with this functionality on the v5.1 release, let us know!