Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

A/B Testing behind Authentification and Angular routing

jhirahoka
Level 1
Level 1

Hi guys

 

I'm having some problems when trying to navigate to an authenticated page on Targets VEC when switching to Compose mode.

 

My homepage navigates to an external login page, after the user finishes the login process, it  redirects it back to save the provided token in session storage and redirects to the next step via angular routing. (We are using angular 7)

https://domain.com/#/  -> https://domain2.com/#/auth -> https://domain.com/#/token/xxx-xxxx-xxxxxx -> https://domain.com/#/page1

 

Even though visually my page is rendering https://domain.com/#/page1 the url remains as  https://domain.com/#/token/xxx-xxxx-xxxxxx so when I switch to Compose mode it fails because it tries to use the same token again.

 

Any clues on how to fix this?

 

1 Reply
Andrey_Osadchuk
Community Advisor
Community Advisor

Just an idea, try to create the activity in EEC instead of VEC.

 

Best wishes,
Andrey Osadchuk | Inspect Launch Implementation, Automate Classifications & Data Sources, Essential Bookmarks