Wrong return type from hiccup.util/url #47

Closed
Belaf opened this Issue May 6, 2012 · 1 comment

2 participants

@Belaf

It seems the url function returns a java.net.URI object, not a string as stated by its documentation (and as it used to do in 0.3.8)

user=> (hiccup.util/url "/group/" 4 "/products" {:page 9})
#<URI /group/4/products?page=9>

It looks like a call to str went lost during the refactoring.
Anyway, either the function or its documentation is wrong.

Regards,
Lorenzo

@weavejester
Owner

The documentation is wrong in this case. I'll correct it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment