[Solved]: Redirect after comment to relative path instead of static permalink [Solved]: Redirect after comment to relative path instead of static permalink
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Redirect after comment to relative path instead of static permalink

Started by dills84, April 02, 2008, 09:20:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dills84

just wondering if theres a way to change the redirect that occurs in DBinput.php when a comment is posted. i'd like to have the redirect go back to the relative url because i use "last uploads" alot and this creates a problem.

As it is now, i comment. and get pushed into the images album. instead of being redirected back into the "last uploads" meta album. thats my problem.

i tried changing the redirect url, but i kept getting errors. any help would be great. thanks!

Nibbler

It goes back to the static link for a reason. If you got there via last comments you will go back to the wrong picture. If you want to change it you need to pass the referer to db_input and then redirect back using that.

dills84

yeah i figured that would be the case. i was hoping someone else might have achieved it already, because its really been bugging me latley.

looks like i'll have to give it a go by myself.

thanks for the info.