Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

create custom signout link component that is multilingual(variations) friendly for the signout page url.

$
0
0

Hello all trying to create a custom logout webpart.  What I've done is hard coded the relative path to the signout.aspx page like so in a link button event handler:

HttpContext.Current.Response.Redirect("/_layouts/Signout.aspx");

But unfortunately if you on are on a variation page and click on the logout webpart it is not context aware to figureout that it needs to redirect you to the appropiate language signout page for that variation.

so for example I have two variation urls English and French.

http://domain/English/

http://domain/French/

What I would like to see happen when Iam on any variation page is when when I click on a signout link or button that it programmatically recognizes I am on a variation page and redirects me to

/">http://domain/+<variation_root>/signout.aspx".  Essentially being context aware of what variation root it is under.

Any examples or solutions to this?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>