Hi William,

After some delay, I finally fixed this issue in SVN trunk and 2.0 banch. 
Directory redirects now preserve query parameters.

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg
Noelios Technologies ~ http://www.noelios.com



-----Message d'origine-----
De : William Pietri [mailto:[email protected]] 
Envoyé : lundi 19 juillet 2010 21:04
À : [email protected]
Objet : Directories with parameters

I'm wondering if DirectoryServerResource should have a broader notion of what a 
directory is.

Right now, if a URL appears to be referencing a directory but doesn't have 
slash on the end, it redirects to the version with the slash. 
That's fine if somebody comes to /foo and gets redirected to /foo/. But what if 
there's a query?

In my case, I have links in Facebook newsfeed items that go to a JS app served 
up via Restlet. For example, a newsfeed link might go to /foo/?ref=nf, so that 
I can track the source. However, because that doesn't end with a slash, 
DirectoryServerResource redirects that to /foo/, which prevents us from using 
Google Analytics to track sources.

Rather than looking at the whole URL for a trailing slash, shouldn't it just be 
looking at the path, not everything including the query?

Thanks,

William

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2635327

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2667205

Reply via email to