I’m currently using magic link + &next-page=/trip-detail?recordId= to send users to a specific page. I’ve implemented tabs on the page (which are amazing!) and I’m wondering if there is a way to take users to that specific tab (instead of the first tab on the page)?
Hi Kristin,
Yes! I think this should work, feel free to come back to me to let me know (As for once this is not a tested solution yet)
magic link + &next-page=/trip-detail#tab5?recordId=
tab5 to be replaced by the tab you want.
Thank you, Matthieu!
I tried this using below. Tab name is Proposal (I tried it with Proposal and proposal )
When I try the link it displays the record for a different client with the error message below, and doesn’t take me to the Proposal tab.
Thanks for your help
Mmmm your tab can’t have “proposal” as an Id.
To know the tab Id, just click on the tab you want to redirec to and you will see a “#tab” in the url parameters.
It should look like this:
and #tab should be at the very end of the url, not after trip-detail
Thank you, Mattieu –
too early, I need more
Updated to below, but I am still getting the same error
live page URL when on desired tab is
I also tried the original magic link and adding #tab2 at the end of the URL which takes me to the correct user and trip, but the first tab on the page
After some tests I think this is not possible.
There is a next-page= parameter in the magic link. But not a next-anchor=
So I think this is not possible as the next-page parameter only takes in count a page not a page + anchor.
=> Feature request
The only thing I could do is give you a simple script that you would have to copy paste in your custom header page (nothing to customize, just copy paste)
You wouldn’t have anything to change in your formula in the backend.
Note that #tab2 will be added in any case, each time someone goes to that page, coming from a magic link or not
Thank you, Matthieu!
I will rethink how I can adjust to make this work. I don’t think I can have them go to that tab always from the magic link.
I appreciate your time and help!
I can also add some conditions in the script if necessary.
Based on logged in user data, or based on a second url param coming from your formula (you can add multiple url parameters, in addition to the recordId, to the magic link).
Note also that It won’t lead them to the tab container itself (if this is not the first block in the page). It will open the tab2 in the tab-container… without going to the tab container (I know, it’s complex )