Hey, Instead of the team name, I would use the team slug (or team id) to avoid any issue with the name being URLized.
Then I would use query parameters to pass those 2 pieces of information.
something like /account/teamAccept?memberId=${memberId}&teamId={teamId}.
Another way to to this is to create an invites collection so that you can use a single id. That collection would be (_id, member, team, expiredDate, validity}
with member being a reference field to PrivateMember collection and team being a reference field to Team collection
You’ll have the dynamic page /invites/${id}
So that it would be easier because you simply need a dataset
Does it answer your question?