[Yesod] an API which return Root Relative URL.

Hi I want an api which return Root Relative URL. I've been developing wiki clone. When a writer select and click an image from photo galary in order to insert a image, click event insert a wiki image link like as "". But I think this - wiki contents has self Absolute URL - is not good. Is there the API? I want the api, but i remove approot string from Absolute URL, now.

There currently isn't a specific function for doing this right now,
and you're already doing exactly what I would recommend: stripping out
the approot. I'm not sure if this is a general enough use case to
warrant adding the function to Yesod. If you would be so kind, I
*would* recommend you add a page to the Wiki describing your problem
and solution. I would like to start a Wiki section for
user-contributed "cookbooks." It would also be a good way for me to
know what kinds of features should be added to Yesod, and what areas
could have more intuitive APIs.
Michael
2011/1/6 いとうかつとし
Hi I want an api which return Root Relative URL. I've been developing wiki clone. When a writer select and click an image from photo galary in order to insert a image, click event insert a wiki image link like as "". But I think this - wiki contents has self Absolute URL - is not good. Is there the API? I want the api, but i remove approot string from Absolute URL, now.
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
participants (2)
-
Michael Snoyman
-
いとうかつとし