QueryString with EPiServerFriendlyUrlRewriteProvider

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
Sep 20, 2007 11:07
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
Sep 20, 2007 11:38
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:
Sep 21, 2007 17:21
Thansk for the reply, this works. Eainting for the service release with anticipation :)
Sep 24, 2007 9:30
I have also come up against this bug. Any news on when this next service drop will be? Thanks.
Nov 15, 2007 15:07
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 :(
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.