I’ve broken something in my patching frenzy. When you click on comments under each post, you go to the comments form. The form posts correctly and the comment is stored, but the page tries to go somewhere else. I think this is related to my CGIPath --> AdminCGIPath change in mt.cfg. Sorry about that. Looking into it now.

Update

It is indeed because of my changes to mt.cfg. If I leave CGIPath set to the absolute admin gui url, all is fine. If I set AdminCGIPath to the full path of the admin gui, and set CGIPath to the relative patch to /cgi-bin/, the comment template chokes. Actually, it redirects to /mt-comments.cgi instead of /cgi-bin/mt-comments.cgi. I’m willing to bet this is an issue with the CGIRelativeURL handler in lib/MT/Template/Context.pm. We shall patch an see.

I’m sure I could just fix this by making CGIPath a full url incliding http://, but something feels wrong about hardcoding a domain name in there.
I think patching the handler to return the entire entry if it doesn’t start with http/https is what the method is really after anyways.

Update Redux

It looks as if this problem is just a little more in depth than I first thought. Changing the CGIRelativeURL handler had no effect. Why?
Some things seem to use CGPath instead for no good reason that I know of. Awaiting an email response from Ben about how he would like to handle it, then I’ll get to work.

See more posts about: offtopic | All Categories