urlFor(...) returns a CharSequence, not a Url and there is no constructor
for Url that accepted a String or CharSequence. So what I had tried was
simply the string returned...and that was relative.

But since you were confident, I took another look and found
Url.parse(CharSequence). So this DOES work for me:

Url relativeUrl = Url.parse(urlFor(...));
Url fullUrl = urlRenderer.renderFullUrl(relativeUrl);

Thanks a bunch!
Chris


On Fri, Apr 17, 2015 at 3:45 PM, Martin Grigorov <[email protected]>
wrote:

> On Fri, Apr 17, 2015 at 10:42 PM, Christopher Merrill <
> [email protected]> wrote:
>
> > The javadocs indicate that should return a bookmarkable (absolute) URL,
> but
> > it is returning a relative URL, instead :(
> >
>
> Please be more concrete what you have tried.
>
> This should work fine:
> Url relativeUrl = urlFor(...);
> Url fullUrl = urlRenderer.renderFullUrl(relativeUrl);
>
>

Reply via email to