Blog Url problem when editing existing posts

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
3/2/2010 1:34:11 PM
Gravatar
Total Posts 72

Blog Url problem when editing existing posts

Hi,

I am finding that when I edit a number of blog posts the url is changing each time (appending a 1 to the existing url).

Any ideas why this is changing?

Thanks,
Ben

3/3/2010 8:44:16 AM
Gravatar
Total Posts 18439

Re: Blog Url problem when editing existing posts

Hi Ben,

This issue was reported previously, and was fixed in version 2.3.3.9.

Best,

Joe

3/3/2010 9:30:55 AM
Gravatar
Total Posts 72

Re: Blog Url problem when editing existing posts

Hi Joe,

Thanks for the reply.

Any chance you could let me know the exact fix as we have made some customisations to the blog module (yes I know we should have probably cloned it but time was of the essence).

Then I can apply to my current version.

Thanks,
Ben

3/3/2010 11:02:23 AM
Gravatar
Total Posts 72

Re: Blog Url problem when editing existing posts

Think i've found it - you added a new version of the friendlyurlsuggest script. Seems this line was the fix?:

UrlHelper.prototype.onchange = function()
{
if (this.inputText.value == this.referenceText.value) { return; }
this.query = this.inputText.value;
this.GetData(this.ShowData, this);
}

So should I just update EditPost.aspx.cs and PageSettings.aspx.cs to load the new version of the script?

Thanks

Ben

3/3/2010 12:02:46 PM
Gravatar
Total Posts 18439

Re: Blog Url problem when editing existing posts

You should study the latest version of the code closely to port my changes to your forked version. As I recall I added a hidden field for the post title and changed how script is wired up to include the hidden field.

A similar change was made for cms pages because tabbing out of the page name there also suggested a new url but has been fixed in the latest version.

3/3/2010 1:44:44 PM
Gravatar
Total Posts 72

Re: Blog Url problem when editing existing posts

Hey Joe,

Thanks for your help. Used the compare tool in NotePad++ so was able to check all the changes. Have now deployed to live server and all working well.

Thanks

Ben

You must sign in to post in the forums. This thread is closed to new posts.