Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 7 Edit Button and Force Lowercase URL RewritingDNN 7 Edit Button and Force Lowercase URL Rewriting
Previous
 
Next
New Post
3/27/2013 1:53 PM
 
We have a standard IIS URL Rewrite rule in place to force the urls to lowercase.  We're using DNN 7.0.4 and when logged in the Edit Button does not work. If we remove the rewrite rule from web.config the edit button works again. Any thoughts on why the url rewrite rule would impact this functionality?

Vinny Malanga
IMI Software, Inc.
 
New Post
3/29/2013 6:34 AM
 

Seems like DotNetNuke itself works fine but the JavaScript callbacks that the Edit functionality depends on do not, they may be case sensitive.

I don't know what to tell you; perhaps have the rewrite rule work for one alias (for production) and have another portal alias for editing?


Regards,
Christopher Koeber
 
New Post
3/29/2013 7:01 AM
 

Personally I would avoid messing with URL cases in any modern web environment.  

URLS are used for so much more than just paths to a page.  They can include all sorts of mapping and querystring like information in the url stream - and its all but impossible to know when something in the path NEEDS the actual case of a value passed thru.

Sure you can sometimes say dont change the case of anything after the ? -  but when a system is using friendly URLS the ? does not actually exist in most cases. 

This is even more important when you get into service based callbacks via ajax -- where again the EXACT name of a callback is most likely needed for services mapping to work correctly - not to mention all sorts of other passback information.

Westa

 
New Post
3/29/2013 11:04 AM
 

Using Fiddler I was able to trace where the redirect was impacting the Edit functionality. Apparently forcing all urls to lowercase impacts the encoded values when calling the services layer. I have to thank Bruce Chapman for pointing me in the right direction on that one.

I identified this path - /DesktopModules/internalservices/API/controlbar/ToggleUserMode as causing the problem. I'm sure I could get more general than that such as excluding all lowercase rewrites to anything in /DesktopModules. Anyway, when excluding this from the rewrite rule the edit functionality was restored. I also added an exclude rule for .axd and .ashx files as well.

All seems to be working just fine but I can see how this sort of thing could cause some unintended issues.

Thanks for the replies guys.


Vinny Malanga
IMI Software, Inc.
 
New Post
3/29/2013 12:01 PM
 
Vincent Malanga wrote:

Using Fiddler I was able to trace where the redirect was impacting the Edit functionality. Apparently forcing all urls to lowercase impacts the encoded values when calling the services layer. I have to thank Bruce Chapman for pointing me in the right direction on that one.

I identified this path - /DesktopModules/internalservices/API/controlbar/ToggleUserMode as causing the problem. I'm sure I could get more general than that such as excluding all lowercase rewrites to anything in /DesktopModules. Anyway, when excluding this from the rewrite rule the edit functionality was restored. I also added an exclude rule for .axd and .ashx files as well.

All seems to be working just fine but I can see how this sort of thing could cause some unintended issues.

Thanks for the replies guys.

 

Nice work in tracing the root of the problem! Glad everything worked out.

Keep in mind what Wes Tatters said, though. You may have unexpected things happen in random places which the URL rewriting may affect. Another troubleshooting step either you or the maintainer of the site you are working on will have to go through.


Regards,
Christopher Koeber
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 7 Edit Button and Force Lowercase URL RewritingDNN 7 Edit Button and Force Lowercase URL Rewriting


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out