Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Redirection for my website View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 5/31/2012 11:00:05 PM
   
Redirection for my website
Hi Guys,

I am using the random redirection webpart to do a redirection on my page.

The URL inside the webpart is:
www.mywebiste.co.nz{%relativepath%}

So when someone goes to the page it redirects them to mywebsite.co.nz and adds the relativepath behind it.

But if the user is having a query string in his URL then the {%relativepath%} macro is not adding the querystring.

Do I need to add another macro to add the query strings?

Note: Query strings are different everytime.

Thanks
Gitesh Shah

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/3/2012 5:36:05 AM
   
RE:Redirection for my website
Hi,

do you mean that query string value is always different or query string itself?

In the first case is solution simple. For example if the landing URL is:

http://<domain>/examples/web-parts/general/actions/random-redirection.aspx?test=myquey

In property of web part you can configure for example:

~/home.aspx?test={%test|(default)something%}

In case you need to read whole query string part you can create for example a custom macro which will work with URLHelper class and returns a query section.

Best regards,
Ivana Tomanickova