Question for the group. Is anyone using ?next-pag...
# questions
l
Question for the group. Is anyone using ?next-page=? I'd like to use the sharing link to log a user in and then automatically redirect them into the portal and directly into a specific record view. example (not a real URL or values here). https://mywebsite.com/login?api_token=f13999b9-c994-4bab-a288-47f89f569689&next-page=/record_view/dpc_reclHu9Pu21xML63V. I've also tried using a full path, as well as encoding the "/" in the next path. No matter what, it logs the user in but routes to the homepage not to the "record_view" page.
c
@late-zoo-2151 I use the Stacker links frequently in our automated emails. A few thoughts ~ • I’ve never had issues with them working, so perhaps you’re trying to do something more advanced then I’ve done. • When I have had temporary issues due to my own errors, it is because the person didn’t have the proper permissions to the page. • I use Airtable with our Stacker apps. I haven’t used Stacker tables. I’m happy to jump on a a quick call if that would be helpful.
l
Thanks Joseph! Nothing more complicated than using the sharing link that stackerhq provides users and then a next-page parameter. For some reason, the next page doesn't land on the record, it defaults to the home page. Checked permissions and that's not the issue as the user can reach the record page directly (manually). I am also using airtable in this particular case.
c
@late-zoo-2151 I see what you’re saying. I don’t think Stacker supports it.
s
@late-zoo-2151 I’ve never used
next-page
🤔 I’ve been using
r
instead.
https://my.app/page?r=/another_page/view/xxx_recXYZ
Maybe it depends on the Stacker version being used
a
Yeah I use Ambroise' method too. It works well.
l
@sticky-night-20812 thank you, for some reason (Stacker v4) when I use the "?r=" it breaks the sharing link login process. So now instead of logging in, and going to the homepage, it doesn't let the sharing link log the user in. Presented with the standard login page (Username/password) instead. hmmm. I assume this is on V5 that you're using this??
to be clear, in your example you wrote "https://my.app/page" as the first page. For me, this is the sharing link that stacker provides for users to use (log in without entering a passcode)
once logged in, I want to direct them to a specific record.
and thanks for all the replies!!
s
I assume this is on V5 that you’re using this??
@late-zoo-2151 I don’t use v5, I’m probably on v3 I guess, hard to tell as the versions aren’t so clear But, if you don’t manage to do it using a native Stacker feature, it’s probably something achievable using custom code. simple smile
l
Good question, I am in V4 and haven't started testing in V5 yet.