On Wed, Aug 30, 2006 at 01:22:03PM -0400, Bradford R. Bowman wrote:
> I appreciate that this pretty much a fix it yourself kind of project,
> but I was hoping that someone might provide some quick insight on this
> issue.
> 
> I recently set up a hobix blog for a project I am working on.  The
> base url is www.example.com/blogame/ rather than www.example.com/
> The link variable in hobix.yml for this blog is set to
> www.example.com/blogname/  After adjusting hobix.out.quick to reflect
> the proper url for the comment form, comments do get properly posted,
> however, the redirect that occurs as a result of the comments.rb facet
> doesn't reflect the fact that the blog is not situated at the root.
> Instead, it redirects to www.example.com/entry_id and not to
> www.example.com/blogname/entry_id.  I've taken a look at the commments
> plugin, but thought I should ask if there was a quick known fix for this
> before I started breaking things.  

I fixed this by patching the redirect stuff in facets/comments.rb as 
follows:

 # Redirect
 link = @weblog.output_entry_map[entry_id]
 full_link = "[EMAIL PROTECTED]/#{link[:page].link}"
 app.setup_redirection( 302, full_link )

But I'm a big nooby, so please feel free to offer a better way.

-- 
Bradford R. Bowman <[EMAIL PROTECTED]>
GnuPG public key [0x3EE183C6] 
Available at http://pgp.mit.edu

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to