Login page main navigation MIA

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/17/2010 9:45:37 AM
Gravatar
Total Posts 221

Login page main navigation MIA

I notice on my site admin login pages the main navigation disappears from the login page itself. I remember this was by design on the 404 error page and Joe graciously added a switch to display/hide the nav for 404 page.

My preference is to always display the site template as intended (with the nav) so the layout doesn't look broken to users (or admins).

So my question is: are my skins possibly broken in some way or is hiding the nav on login pages by design? If it's by design, is there already a setting somewhere turn the nav on? Thoughts? Thanks!

1/17/2010 10:37:04 AM
Gravatar
Total Posts 190

Re: Login page main navigation MIA

Adding this to your user.config should do it.

<add key="HideMenusOnLoginPage" value="false" />

1/17/2010 10:52:16 AM
Gravatar
Total Posts 221

Re: Login page main navigation MIA

This worked, thanks. But....

Here's something stange. If I go to this URL the navigation doesn't show:
http://www.yourdomain.com/Secure/Login.aspx

But if I go to this URL is does show up:
http://www.yourdomain.com/secure/login.aspx

It's case sensitive? The default Mojo behavior uses the caps, which makes this glitch more of an issue.

1/17/2010 11:19:15 AM
Gravatar
Total Posts 190

Re: Login page main navigation MIA

I notice that also. A cursory dig through the code doesn't show anything obvious. Maybe Joe or someone more familiar with the code and take this one on.

1/18/2010 7:34:22 AM
Gravatar
Total Posts 18439

Re: Login page main navigation MIA

Hi Guys,

On windows, I cannot produce any difference in behavior of the page based on the case of the url. If I configure it to show the menu, it shows the menu in both cases http://locahost/Secure/Login.aspx and http://locahost/secure/login.aspx

Urls are not case sensitive on Windows because the file system is not case sensitive, but file names and urls are case sensitive on Unix and Linux, so on linux, http://localhost/secure/login.aspx would result in a 404 page not found error.

Best,

Joe

1/18/2010 8:34:58 AM
Gravatar
Total Posts 190

Re: Login page main navigation MIA

That's what I would've thought as well. But I'm on Windows. XP w/Visual Studio 2008 sp1 and using the VS web server. I would not think that the URL case would make any difference, but that is what's happening.

Just did a quick test and I'm also seeing this behavior on my Windows 2K3 server with IIS6. I could not guess why case should matter in this environment. I will try and do some digging into it.

John

1/18/2010 9:23:39 AM
Gravatar
Total Posts 221

Re: Login page main navigation MIA

I can verify the issue on 2 different Win2003 servers and a bunch of Mojo sites. It seems odd to me as well that the url case would have that kind of impact.

I've seen this before in .NET. While the URL works fine either way, is .NET / C# looking at the URL in some way to determine to display the nav or not?

1/18/2010 9:28:06 AM
Gravatar
Total Posts 18439

Re: Login page main navigation MIA

Are you sure it is not a browser cache issue? Does the problem persist if you clear the browser cache?

Are you using the latest version?

I do not see how it is possible for the case of the url to affect it on windows, the same code is executed if the same page is served and the same page is served regardless of the case of the url on windows.

Best,

Joe

1/18/2010 9:32:11 AM
Gravatar
Total Posts 18439

Re: Login page main navigation MIA

It is not based on the url at all. The Login page has this code:

if (WebConfigSettings.HideMenusOnLoginPage) { SuppressAllMenus(); }

That same code will execute regardless of the case of the url.

Best,

Joe

1/18/2010 9:57:01 AM
Gravatar
Total Posts 221

Re: Login page main navigation MIA

Yes, latest version (2.3.3.4). Here's an example from my second server. Notice the red nav bar way at the top:

Doesn't show:
http://www.lakeshoremedicalclinics.com/Secure/Login.aspx

Does show:
http://www.lakeshoremedicalclinics.com/secure/login.aspx

1/18/2010 9:59:17 AM
Gravatar
Total Posts 190

Re: Login page main navigation MIA

I'm equally dumbfounded. This makes no sense. But I did a little more testing looking at the page on both sides of our proxy server (just in case) and I'm seeing it on IE, FF and Chrome. I cleared caches and did all that stuff. But it appears to only matter for the word "Login". If I change the folder name from "Secure" to "secure", it still works. But as soon as you lowercase the L then the menu disappears. 

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