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/
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?