tips and tricks for movable type
redirect url for comments
April 15, 2002
Bill Turner posted this hack for creating a new hidden form field to control the redirect URL after a comment is posted.
Note: Ben Trott mentioned in another Forum topic that the ability to control the redirect URL for comments will be included in the next version of Movable Type - good to know!
Update 10.10.02: You should just be able to use this in your comments form now:
<input type="hidden" name="static" value="<$MTEntryLink archive_type="Individual"$>" />
adjusting according to whichever archive page you'd like the redirect result to be.
Comments
It's working now... How do I get it to not append the anchor for the comment id? I have it redirecting to
http://philsown.com/blog/2003jan08/movable-type/#6
I want to get rid of the #6. Any advice?
Phil