Hi kk and other,
your workaround with php code
is working fine with one exception.
when a comment is successfully submitted it is redirecting back to the comment link which is not pointing to the custom routed link.
For example, custom routed page link is
but when a comment is successfully submitted it is redirecting back to
which we do not want. can you modify the PHP code about to fix it? thanks!
your workaround with php code
- Code: Select all
<cms:php>
global $PAGE, $CTX;
$CTX->set( 'k_is_home', 0 );
$PAGE = new KWebpage( '<cms:show k_template_name />', null, '<cms:show rt_page_name/>' );
$PAGE->set_context();
</cms:php>
is working fine with one exception.
when a comment is successfully submitted it is redirecting back to the comment link which is not pointing to the custom routed link.
For example, custom routed page link is
- Code: Select all
https://domain.com/blog.php?q=aaa/bbb/ccc
but when a comment is successfully submitted it is redirecting back to
- Code: Select all
https://domain.com/blog.php?comment=4
which we do not want. can you modify the PHP code about to fix it? thanks!