CreatePage.aspx behavior change

After applying maintenance this weekend, the CreatePage.aspx behavior has changed>
Original behavior was to substitute "-" for spaces in the URL, bow %20 is substituted.
Looking in F12 Debug, I see the code is in function UpdateUrl()

suggestUrlValue += '-';

is changed to

suggestUrlValue += encodeURIComponent(currentChar);

Can I revert this behavior?

%20 causes and error and the user has to manually overtype the dash.




April 20th, 2015 8:41pm

The change was introduced with one of the following 3 updates

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

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

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

Of which the last, MS15-036, seems most likely, seeing as how it contains this non-security "improvement"

"Assume that you type a page name, such as "Text with spaces," in the New item form in a site page library in SharePoint Server 2013 to create a new page. After you create the page, the automatically generated URL is inconsistent with the preview URL. For example, the preview URL may be displayed in a label as follows:
Find it at : <var><%SitepagesUrl%></var>/Text with spaces.aspx
However, the generated URL may be displayed as <var><%SitepagesUrl%></var>/Text-with-spaces.aspx. "

Free Windows Admin Tool Kit Click here and download it now
April 21st, 2015 1:24pm

It is KB2965219 that contains the issue as that package has CRPAGE.ASX (CreatePage.aspx). This issue is also present in the April 2015 CU). I'll open a PSS case.
April 21st, 2015 1:40pm

I replied to Trevor below that this behavior was introduced in a more recent patch.
Free Windows Admin Tool Kit Click here and download it now
April 21st, 2015 1:47pm

Thanks Trevor,

I had seen CRPAGE.ASX but had not drawn the line.

The user also reports that clicking "Create" does not navigate to the Pages list view as before and he has to manually navigate to that page to access the newly created page.

I have verified this behavior bur not yet identified the failing portion of the code.

April 21st, 2015 2:00pm

The issue will be the encodeURIComponent function. My case is open, so I'll let you know how it goes.
Free Windows Admin Tool Kit Click here and download it now
April 21st, 2015 2:02pm

Also verified that the navigation no longer occurs, as you indicated. I'll bring that up as well.
April 21st, 2015 7:13pm

Anyone have an update on this? We installed the latest Windows and SharePoint updates on 6/26/2015. We're seeing the following:

- When attempting to create a new publishing page, the Title With Spaces in it is converted to a URL Name of Title%20With%20Spaces 

- After creating the page, we're taken back to the pages library list view. 

So it looks like it fixed the navigating back to the library view but broke the dashes replacement for spaces which was working prior to that.


Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2015 6:07pm

That's correct, still an outstanding issue there.
July 2nd, 2015 6:08pm

July cumulative update didn't include a fix for this.
Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 4:55pm

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

Other recent topics Other recent topics