
claco at chrislaco
Jan 16, 2008, 5:50 AM
Post #5 of 7
(1779 views)
Permalink
|
|
Re: uri_for method is broken in latest release
[In reply to]
|
|
Daisuke Murase wrote: > Hi, > > I noticed that current uri_for returned broken uri when multibyte chars > was passed. > Though I also checked svn repo, it still broken. > > Here is a patch and test for it. (both attached) > > > And one more thing, why current uri_for doesn't do canonical? > > In https page, I got 'https://example.com:443/foo/bar' from uri_for. > I think this is ugly. > Yes, I'm a broken record. Yes, I should really file an RT for this. Yes I probably just volunteered myself for tests. I'm bitching again here just so I don't forget. :-) uri_for needs serious love when it comes to ending slashes. uri_for('foo', '/') and uri_for($action, '/') both do different things, and in the end, adding a '/' to both of those methods params usually just yields foo// instead of foo/ This seems like a bug and writing [% c.uri_for('foo') _ '/' %] seems silly sometimes imho. -=Chris
|