Committer: slobin
LJM-1918: Redirect to the first comments page after commentingM talkpost_do.bml
U trunk/htdocs/talkpost_do.bml
Modified: trunk/htdocs/talkpost_do.bml =================================================================== --- trunk/htdocs/talkpost_do.bml 2011-08-10 08:43:37 UTC (rev 19686) +++ trunk/htdocs/talkpost_do.bml 2011-08-10 08:56:19 UTC (rev 19687) @@ -285,9 +285,8 @@ $commentlink = $uri->as_string; # need to return on mobile version - } elsif ($POST{'mobile_domain'} =~ qr/^\w\.$LJ::DOMAIN$/) { - my $mobile_link = LJ::Mob::Uri->find($talkurl); - $commentlink = "http://$POST{'mobile_domain'}$mobile_link/comments#comments"; + } elsif ($POST{'mobile_domain'} =~ qr/^\w\.$LJ::DOMAIN$/ && $POST{'ret'} =~ m!^/([\w\d\/]+)$!) { + $commentlink = "http://$POST{'mobile_domain'}$POST{'ret'}#comments"; } elsif ($POST{'viewing_thread'} eq '') { $commentlink = LJ::Talk::talkargs($talkurl, "view=$dtalkid", $stylemine) . "#t$dtalkid"; } else {