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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...add querystring parameter - but not friendlyadd querystring parameter - but not friendly
Previous
 
Next
New Post
2/10/2008 7:00 PM
 

How can you add a querystring parameter to the url and not have the FriendlyURL function change it?

 
New Post
2/10/2008 8:39 PM
 

essentially you can't. The friendlyurl module is a url rewriter, so it will always rewrite the value on each new page request. The value is still there in the querystring collection, its only the appearance of the url that is changed for the user. If you wanted to have a querystring parameter not rewritten you'd have to create a custom version of the friendlyurl httpmodule.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/11/2008 12:53 AM
 

Thanks.   Seems you can put a : or / and it leaves it alone. 

So even though it is friendly it is still part of request.querystring (I should break my asp habit probably.).    I can't seem to access it that way even thought it is part of the friendly url /tabid/122/test/abc     Example, in code I added &test=abc

eta:  oh it is in the collection..  I must have had something wrong before.    Why is it that the url is not converted to friendly on a straight submit in the address bar?  But if code redirects it or processes it the url does become friendly.

 
New Post
2/11/2008 7:23 PM
 

hhhm, good question, I don't know, but it's the way all of the asp.net rewriting engines work AFAIK.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/12/2008 12:07 PM
 

You can use a "normal" url with querystring variables if you want.  
The only thing that changes it in the output is when you use the DNN NavigateUrl() function which formats it as "friendly" for output.

You can even add more querystring variables to a "friendly" url. Just make sure you don't put the same variable in there twice or you will get the multiple values concatenated with a comma in that item. 

The Rewriting a url only acts on the input. Depending on your implementation, at the beginning of the request it will breakup the Url into normal querystring parameters and then rewrite it on the context of the request so that when the events start happening in the Page Lifecycle it will look "normal" again.

The DNN UrlRewriter is a little more complicated because it is mixed in with other things that happen on the beginning of the request like looking up the correct portal, and now doing logic for SSL and the new Human friendly tab Lokup from the tabPath.  The DNN UrlRewriter will also do a redirect (unfortunately a 302 instead of a 301) instead of a rewrite if you have a rule that includes the host.domain name.  It does this so that it can start over in the other processing.

 

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...add querystring parameter - but not friendlyadd querystring parameter - but not friendly


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