Target - Redirection Offer-Adobe Target

Learn why the redirection URL is not accepted when using the “redirect to URL” option.

Description description

Environment

Tags

Issue/Symptoms

In redirection activity, you are landing on https://www.xyz.com and must be redirected to https://www.xyz.com/abc/#/auth URL.

When using the “redirect to URL” option in Direct, the redirection URL is not accepted because it has a Hash Fragment.

How to solve this problem.

Resolution resolution

To solve this, use a custom code option as:

// Simulate a mouse click:

<script>

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

</script>

<script> 

// Simulate an HTTP redirect:

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

</script>

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f