Quick Nav:  Online Store   |   Login | Register

Menu Problem SSL

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
precept00
<100 Posts
Posts:75


05/23/2008 9:40 PM  

John,

I recently installed and configured the SSL options for my DNN site and I received the latest version from DNN Masters SEO.

The navigation at the top of my site has a link called Ask Us. The url is being translated as undefined.aspx. I check the URL rewrite rules in DNN Masters SEO and the page is rewritten properly as ask-us.aspx. Why would the snapsis menu store the URL as undefined.aspx?

Thx for your help

Jaime

precept00
<100 Posts
Posts:75


05/23/2008 9:48 PM  
Here is an upate, If I define the page as undefine.aspx in the URL Rewrite rules the http to https works...otherwise i get a 404 error
John Mitchell
Posts:3249


05/23/2008 10:01 PM  
I have no idea why it would get rewritten as undefined.aspx
The menu only uses what is currently stored as page names in the DotNetNuke tabs object.
precept00
<100 Posts
Posts:75


05/23/2008 10:54 PM  
I am looking into the raw data in the tab table....Not sure either, but I have to get ssl working on my site. I will let you know what I find
precept00
<100 Posts
Posts:75


05/23/2008 11:11 PM  

Well I know when I remove DNN Masters SEO the SSL redirect works fine, as none of the URL's are rewritten. When I re-enable DNN Masters and regenerate URL's it rewrites the "ask us" URL as undefined.aspx.  The ask us page  has ssl enabled. If I leave it alone it will redirect to unedfined.aspx,  but obviously this is undesirable. When I edit the URL rules and change undefined.aspx to ask-us.aspx the SSL redirect breaks and I get a 404 not found. The raw data in the tabs table looks fine... I wish dnn had better ssl support than this

precept00
<100 Posts
Posts:75


05/23/2008 11:31 PM  
Well something is rewritting that URL as undefined.aspx ....The DNNMasters initial rewrites tabid 73 as undefined until I redefine it and the css menu also iterprets it as undefined. I have looked at the data in the tabs table for the ask us page and everything looks ok
John Mitchell
Posts:3249


05/24/2008 8:15 AM  

I don't understand why it ever gets changed to undefined.aspx to start with. Is that something that happens in the DNN Masters module until you define it?

What do you need the CSS menu to do differently?

I use a javascript method to switch to SSL and back on this site.

var secureUrlPattern='login|Cart';
if(location.protocol.toLowerCase()=='http:'&&location.href.match(secureUrlPattern))
location.href=location.href.replace('http:','https:');
else if(location.protocol.toLowerCase()=='https:'&&!location.href.match(secureUrlPattern))
location.href=location.href.replace('https:','http:');

 

precept00
<100 Posts
Posts:75


05/24/2008 9:35 AM  
Yes it happens in DNN Masters. I was looking at the row in the tabs table and I cant see anything in the data that would cause your module or his module to read something as undefined. I disabled the ssl feature for the page and it still comes out as undefined. I am going to create a test page and see if I can replicate the behavior switching between ssl and non ssl.
precept00
<100 Posts
Posts:75


05/24/2008 9:38 AM  

I dont want the menu to do anything differently. I assume the page name is appended to the anchor tag and a "-" is used as a replacement character. The page name should not be undefined its called ask us

precept00
<100 Posts
Posts:75


05/24/2008 9:44 AM  

Hmmm.. I just tested with my sitemap page and it works....I am going to create my ask us page again from scratch then enable ssl again and see what happens.

precept00
<100 Posts
Posts:75


05/24/2008 10:36 AM  

Looks like recreating the page did it...Something was wrong with tabid 73...not sure why but its fixed thank you for the support

precept00
<100 Posts
Posts:75


05/25/2008 6:24 PM  

John,

Well maybe I do I have a suggestion.... Your script rewrites the protocol to secure or unsecure depending on the current connection. If I am on https all my links in the css menu will be re-written using https and vice versa. This means performance will take a small hit on a redirect from the webs server. I have gotten around this on my site by hardcoding all the links to either http or https depending on whether the page is secured as defined by the pages dnn properties. I guess it would be great if the CSS menu would also look at the IsSecure field in the tabs table to determine whether to write the URL as http or https. Maybe I am looking at this too simplisticly since I have not looked at your code ( nor do I have the time ;-) ). Maybe I am missing details that you took into account when you wrote the module

 

 

John Mitchell
Posts:3249


05/25/2008 7:19 PM  
Right, the menu module creates the links with relative urls, so if the current protocol is https then it will come out that way.

I guess it would be nice if it could "look ahead" to create absolute links on SSL or not. I'll look into that.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software