Expand my Community achievements bar.

SOLVED

Redirect to same url with query string added

Avatar

Level 2

Hi,

 

Is there a way to redirect from https://www.test.com/testpath to https://www.test.com/testpath?newvi=1 without the activity looping?

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 5

@user41905425 one way to stop this is to send a mbox parameter when you see the url param newvi=1 and create audience like param not present for entering the redirect campaign.

 

another way would be template rule setting like this

nnakirikanti_0-1678309830633.png

 

Note: This is not intended use case of adobe target for parameters passing for same page, these kind of redirections should be done at webserver level or CDN level.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 5

@user41905425 one way to stop this is to send a mbox parameter when you see the url param newvi=1 and create audience like param not present for entering the redirect campaign.

 

another way would be template rule setting like this

nnakirikanti_0-1678309830633.png

 

Note: This is not intended use case of adobe target for parameters passing for same page, these kind of redirections should be done at webserver level or CDN level.

Avatar

Level 2

@user41905425 the easiest option would be to check the box that says "Include Current Query Parameters"

Gaurav_Singh_02_0-1678306681901.png

This would avoid the conditions to be true once you are redirected and hence would avoid the loop.

 

Another option would be to use a template rule to avoid redirect when the query parameter contains : newvi=1