After Edit post will return to the home page.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/5/2013 6:35:21 AM
Gravatar
Total Posts 46

After Edit post will return to the home page.

Hi, joe.

  I get the latest code.

   below code in file mojoPortal.Features.UI\Forums\EditPost.aspx.cs in line 461:

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

private void btnUpdate_Click(object sender, EventArgs e)
        {

string threadViewUrl;
                if (ForumConfiguration.CombineUrlParams)
                {
                    threadViewUrl = SiteRoot + "/Forums/Thread.aspx?thread=pageid=" + pageId.ToInvariantString() //thread is empty
                        + "&t=" + thread.ThreadId.ToInvariantString()
                        + "~" + this.pageNumber.ToInvariantString();
                }
                else
                {
                    threadViewUrl = SiteRoot + "/Forums/Thread.aspx?thread="
                        + thread.ThreadId.ToInvariantString()
                        + "&mid=" + moduleId.ToInvariantString()
                        + "&pageid=" + pageId.ToInvariantString()
                        + "&ItemID=" + forumId.ToInvariantString()
                        + "&pagenumber=" + this.pageNumber.ToInvariantString();
                }

  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    you can see the thread= always is empty. in my computer,  this lead to when I edit the post and click the update button, the page return to the home page.

   Thanks! 

5/5/2013 6:50:51 AM
Gravatar
Total Posts 46

Re: After Edit post will return to the home page.

when I get rid of "thread=" then it is ok in my computer.

when i edit this post in your site, it is also ok, so i don't know what is the different config between your website any my website.

Thanks!

 

5/5/2013 12:33:30 PM
Gravatar
Total Posts 18439

Re: After Edit post will return to the home page.

Thanks, I agree with your fix. This is now fixed in the source code repository and I also patched the 2.3.9.7 release.

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