QueryString with EPiServerFriendlyUrlRewriteProvider

Vote:
 
Hello, I'm trying to read my parameters but it seems to be something strange going on here. I use the same code and it works with the EPiServerNullUrlRewriteProvider. My code is as follows: On one usercontrol: ------- protected string GetSomePageURL(string val) { UrlBuilder url = new UrlBuilder((UriSupport.AddQueryString(CurrentPage.LinkURL, "somepage", val)); EPiServer.Global.UrlRewriteProvider.ConvertToExternal(url, CurrentPage.PageLink, System.Text.UTF8Encoding.UTF8); return url.ToString(); } The URLs seems to render correctly with both providers. But with the FriendlyUrl-provider something seems strange with the parameters, it's like something is being cached. My URL is as follows: http://address/some-page/?somepage=overview and I simply output the parameter to a literal on the page and when clicking around on my links in the usercontrol it takes a while before the correct parameter is put through. Do you havfe any idea what the cause of this could be? Best Regards Daniel Öhgren
#15773
Sep 20, 2007 11:07
Vote:
 
Saw that I've forgot one ) on the UrlBuilder url = new UrlBuilder((UriSupport.AddQueryString(CurrentPage.LinkURL, "somepage", val)); when I compiled but this was not the problem. Regards Daniel
#16326
Sep 20, 2007 11:38
Vote:
 
Hi Daniel! There is a caching bug regarding the friendly url provider in the release that means that the friendly url provider will ignore changes to additional query string parameters. We have fixed the bug and it will be available in the next service drop. Until then it's possible to remove cache for friendly url:s by setting the following web.config value:
#16327
Sep 21, 2007 17:21
Vote:
 
Thansk for the reply, this works. Eainting for the service release with anticipation :)
#16328
Sep 24, 2007 9:30
Vote:
 
I have also come up against this bug. Any news on when this next service drop will be? Thanks.
#16329
Nov 15, 2007 15:07
Vote:
 
I've come up against this bug to. I have a link on pages created by the current user wich allows them to delete the page whitout entering Edit-mode. The link passes the pageID to be deleted using a querystring and if I do multiple deletes the value gets messed up (cached ;) ) resulting in the delete beeing performed on a already deleted page :(
#16330
Feb 04, 2008 10:13
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.