Expand my Community achievements bar.

SOLVED

Redirection Offer-Adobe Target

Avatar

Level 3

In redirection activity, of users who are landing on https://www.xyz.com, I want to redirect to this https://www.xyz.com/ abc/#/auth URL.

If i am using the "redirect to URL" option in direct, it is not accepting the redirection URL coz it has Hash Fragment. How to solve this problem.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi praveshn57004778 ,

You can try this in custom code option

// Simulate a mouse click:

<script>

window.location.href = "abc/#/auth";

</script>

<script>

// Simulate an HTTP redirect:

window.location.replace("abc/#/auth");

</script>

1857532_pastedImage_5.png1857719_pastedImage_6.png

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi praveshn57004778 ,

You can try this in custom code option

// Simulate a mouse click:

<script>

window.location.href = "abc/#/auth";

</script>

<script>

// Simulate an HTTP redirect:

window.location.replace("abc/#/auth");

</script>

1857532_pastedImage_5.png1857719_pastedImage_6.png

Avatar

Level 3

Hi Gauresh,

The problem with this solution is that it creates a significant amount of flicker. Is there any other optimize way?

The following has evaluated to null or missing: ==> liql("SELECT id, subject, body, depth, post_time, author.login, author.id, author.rank, metrics.views FROM messages WHERE topic.id = '${topicId}' AND is_solution = true").data.items[0] [in template "analytics-container" at line 82, column 31] ---- Tip: It's the final [] step that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign acceptedAnswer = liql("SELECT... [in template "analytics-container" at line 82, column 5] ----