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

by Phillip Harrington | 01.12.03 10:30 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 0
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/25)