This happens when trying to open the link from the email:
http://exaple.com/forum/viewtopic.php?f=5&t=242&p=3223&e=3223

The link is perfect but it somehow triggers redirection to
http://exaple.com/forum-standalone/viewtopic.php?f=5&t=242&p=3223#p3223

Copying and pasting:
http://exaple.com/forum/viewtopic.php?f=5&t=242&p=3223#p3223
into the address bar works just fine, as well as removing the "&e=3223" from the original link.

I'll look into this one too to see if I can come up with some kind of temporary fix.

Comments

filiptc’s picture

Status: Active » Needs work

OK, here we go. Replace line 1286 of file forum-standalone/includes/functions_posting.php:
'U_NEWEST_POST' => generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t=$topic_id&p=$post_id&e=$post_id",
with
'U_NEWEST_POST' => generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t=$topic_id&p=$post_id#p$post_id",

It shouldn't change functionality but fixes the issue. I'm still marking this as "needs work" as this is not a *real fix*, only a workaround.

vb’s picture

Thanks, Phil
I think it will go to 3.06 patch

filiptc’s picture

But do you have any idea of why the "e=" tag does not get redirected? That I think would be the real thing to fix...

fizk’s picture

Status: Needs work » Closed (fixed)
lintlin’s picture

Version: 6.x-2.0-beta7 » 6.x-2.x-dev
Status: Closed (fixed) » Active

This is still a problem on my board. Running Drupal 6.22, phpbbforum 6.x-2.x-dev. I applied the above patch, but the mails are still sending out the link to /phpbb3/ and not /phpbbforum/.

Any ideas how to fix this?

Thanks for your help,
lintlin