ContentManager.aspx should redirect when requested directly

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.
12/20/2010 6:13:39 PM
Gravatar
Total Posts 8

ContentManager.aspx should redirect when requested directly

When you request the page ContentManager.aspx in the admin folder, it's just show blank page .

Since there is no module id passed as parameter via URL we have to redirect the request to catalog page ContentCatalog.aspx and that done by one of the following :

1: in the BindControls method replace :

if (moduleID == -1)
{
//log.Error("moduleId was -1 in BindControls");
return;
}

with :

if (moduleID == -1)
{
//log.Error("moduleId was -1 in BindControls");
WebUtils.SetupRedirect(this, SiteRoot + "/Admin/ContentCatalog.aspx");
return;
}

 

2: for better performance and avoid unnecessary code calls but that code in Page_Load after LoadSettings();

12/21/2010 8:12:19 AM
Gravatar
Total Posts 18439

Re: ContentManager.aspx should redirect when requested directly

sounds reasonable, I will make this change.

Best,

Joe

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