- Posts: 42
COMMUNITY FORUM
Comments: redirect issue
- juro
-
Topic Author
- Offline
- Senior Member
Less
More
15 years 7 months ago #72913
by juro
Comments: redirect issue was created by juro
Hi,
when I add a comment, I get redirected to an empty page (www.mysite.com/index2.php) which says "Comment added! Refreshing page..." but nothing happens. After adding a comment, the user should be redirected to the page the comment was made on.
I am using a standard Joomla 1.5.14 and the newest K2.
Roland
when I add a comment, I get redirected to an empty page (www.mysite.com/index2.php) which says "Comment added! Refreshing page..." but nothing happens. After adding a comment, the user should be redirected to the page the comment was made on.
I am using a standard Joomla 1.5.14 and the newest K2.
Roland
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
15 years 7 months ago #72914
by Lefteris
Replied by Lefteris on topic Comments: redirect issue
Hi. This means that the ajax request isn't working so please check your page for javascript errors.
Please Log in or Create an account to join the conversation.
- juro
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 42
15 years 7 months ago #72915
by juro
Replied by juro on topic Comments: redirect issue
Yes, I disabled Mootools (as I use jQuery) in my frontend. Re-enabled it and everything works.
Officially not a bug ;)
Officially not a bug ;)
Please Log in or Create an account to join the conversation.
- Travis Metcalfe
-
- Offline
- New Member
Less
More
- Posts: 11
15 years 7 months ago #72916
by Travis Metcalfe
Replied by Travis Metcalfe on topic Comments: redirect issue
Is there a way to get this to work without enabling mootools? can I give it a fixed redirect instead of index2?
Please Log in or Create an account to join the conversation.
- Travis Metcalfe
-
- Offline
- New Member
Less
More
- Posts: 11
15 years 7 months ago #72917
by Travis Metcalfe
Replied by Travis Metcalfe on topic Comments: redirect issue
ok so I figured out how to change the jurl to what ever I want in item_comments_form.php but lets see... instead of using jurl what other command could I feed it?
Please Log in or Create an account to join the conversation.
- Travis Metcalfe
-
- Offline
- New Member
Less
More
- Posts: 11
15 years 7 months ago #72918
by Travis Metcalfe
Replied by Travis Metcalfe on topic Comments: redirect issue
ok so JURI just returns the path (docs.joomla.org/JURI/root) so what is actually causing the redirect? hmm...
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
15 years 7 months ago #72919
by Lefteris
Replied by Lefteris on topic Comments: redirect issue
Hi. You can't make comments work without mootools.
Please Log in or Create an account to join the conversation.
- Alfonso F. Moreno
-
- Offline
- Elite Member
Less
More
- Posts: 169
14 years 6 months ago #72920
by Alfonso F. Moreno
Replied by Alfonso F. Moreno on topic Comments: redirect issue
As it`s said in other post you need ti enable system plugin mootools update and the comment will be added normally without redirecting to blank page.
Please Log in or Create an account to join the conversation.
- tudor filip
-
- Offline
- New Member
Less
More
- Posts: 2
13 years 9 months ago #72921
by tudor filip
Replied by tudor filip on topic Comments: redirect issue
hey guys
i found out the solution just add into www.mysite.com/index2.php
the fallowing lines
<?php$ref = $_SERVER;header( 'refresh: 3; url='.$ref);$_REQUEST = 'component';include('index.php');?>
i found out the solution just add into www.mysite.com/index2.php
the fallowing lines
<?php$ref = $_SERVER;header( 'refresh: 3; url='.$ref);$_REQUEST = 'component';include('index.php');?>
Please Log in or Create an account to join the conversation.