bug in hEntry bookmarks

0 views
Skip to first unread message

dimitri

unread,
May 22, 2008, 11:28:32 AM5/22/08
to mofo
If you try to construct an hEntry bookmark with an absolute URL, it
will append the host and protocol again, causing it to appear twice.
By default all rails URL helpers construct URLs with the abs. path.

I had to monkey patch like so:

hentry.rb:
def atom_link
# %(<link type="text/html" href="http://#{@domain}#{@bookmark}"
rel="alternate"/>)
%(<link type="text/html" href="#{@bookmark}" rel="alternate"/>)
end

Also, I tried to report this on the trac referenced on the main MOFO
page, but the link was dead.

Best,
Dimitri
Reply all
Reply to author
Forward
0 new messages