Sign in as a different user Changing URL % as %25

In url having space %20,when i am clicking as Sign as different user it was changing to

%20 as %2520,so %is changing as %25,because of this i am unable to login as another user,can any one help on this issue.

How to fix this issue in all the sites.

we added the MenuItemTemplate in Welcome.ascx.

November 25th, 2014 2:43pm

% is changing to %25 because the common space character is encoded as %20 as you noted yourself. The % character is encoded as %25. So it seems there is URL encoding happening (check your code) which is again encoding % in %20 as %25.
Free Windows Admin Tool Kit Click here and download it now
November 25th, 2014 2:55pm

Hi ,

As another workaround you can add the following custom action link to use closeConnection.aspx?loginasanotheruser=true for your web application, this custom link could be used to login as another user, but it will redirect user to site home page, you can try.

http://support.microsoft.com/kb/2752600

http://www.cwheeler76.com/Lists/Posts/Post.aspx?ID=2

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
												
    Id="MyLoginDifferentUser"
    GroupId="PersonalActions"
    Location="Microsoft.SharePoint.StandardMenu"
    Sequence="1000"
    Title="Sign in as Different User">
    <UrlAction Url="/_layouts/closeConnection.aspx?loginasanotheruser=true"/>
    </CustomAction>
</Elements>
Thanks
November 26th, 2014 12:43pm

It sounds like your URL is being double-encoded. Have you deployed any post-SP1 update to SharePoint 2013 (April 2014 CU or MS14-022 or higher)? September 2014 CU clears the double encoding issue.
Free Windows Admin Tool Kit Click here and download it now
November 26th, 2014 3:28pm

Hi, using the following url: ttp://server/_layouts/closeconnection.aspx?loginasanotheruser=true

March 20th, 2015 6:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics