Add support for old invitation format

The invitation format has been changed and the old style invitation link are not working.

New route and controller logic added to fix this