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 ...AUM: Which RegEx Field to Use?AUM: Which RegEx Field to Use?
Previous
 
Next
New Post
6/17/2014 10:49 PM
 

Hi, guys.  I'm using the DNN 7.2.1 platform with AUM enabled.  I'm using the X3.DnnUrlManagement module to provide the UI so that that I don't have to use T-SQL to make adjustments to the AUM configuration.

 

I ran into a sticky situation today with a custom product catalog module.  Here's the URL when AUM is disabled, and this URL works fine:

https://www.bogus.com/ProductCatalog/tabid/57/ControlType/upclist/SelectBy/Class/Class/JFDE/ClassDescription/FROZEN%20DESSERTS/division/J/DivisionDescription/FROZEN/pg/1/Default.aspx

 

Here's the same URL with AUM enabled:

https://www.bogus.com/Product-Catalog/ControlType/upclist/SelectBy/Class/Class/JFDE/ClassDescription/FROZEN DESSERTS/division/J/DivisionDescription/FROZEN

 

The key missing information is "/pg/1".  If I append it to the failing URL, it works fine.

 

OK, so I wanted to tell AUM to not monkey with any of the URLs that contain "/upclist/".  It's a long story, but that's the piece I want to filter on.  So add appended the following:
     |/upclist/

On the "Ignore URL Regular Expressions", I get a 404 on any page that contains "/upclist/", even pages that were working fine with AUM enabled.

On "Do Not Rewrite", I get the same 404 scenario as above.

On "Do Not Use Friendly", no impact.

I tried these each, one at a time.  What am I doing wrong?  Should I use a different field?  Is my "Regex" wrong?  Or am I barking up the wrong tree altogether?

See Ya!
Van


See Ya! Van
 
New Post
6/18/2014 12:38 PM
Accepted Answer 

OK, the problem is solved.

I had been a former customer of the iFinity Url Master module, and so assuming that the AUM logic is very similar to its predecessor (Url Master), I went back and read through Bruce Chapman's "Parameter Redirection, Rewriting and Replacement with Url Master" document from Url Master 02.08.00.  Wow!  This is a much more complex topic than I had initially realized!   By the way, this is a great document to get grounded in the theory of how DNN manages URLs for anyone else that's interested.  It would make a great Wiki article on the DNNSoftware.com site.

I dug in and found the source of the problem.  The product catalog module used a GridView control to page through the list of inventory items.  The code to navigate to the next page in the control was manually appending the page parameter into the URL in folder format (e.g. /pg/2/) rather than query parameter format, and then it was redirecting to itself with the updated URL.

To fix the problem, I edited the code so that the GridView page index was changed without editing the URL and initiating a redirect to the updated URL.

Before:
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As GridViewPageEventArgs)
    Response.Redirect(GetPageIndexUrl(e.NewPageIndex))
End Sub
(The GetPageIndexUrl routine is where the URL gets modified.)

After:
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As GridViewPageEventArgs)
    Me.GridView1.PageIndex = e.NewPageIndex
End Sub

Bingo!  Now the user can page through the GridView control with AUM enabled.  The code seems to be a little more efficient this way, too.

See Ya!
Van


See Ya! Van
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...AUM: Which RegEx Field to Use?AUM: Which RegEx Field to Use?


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out