Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirects within directory structure #43

Open
Mihoko-Okayami opened this issue Mar 8, 2013 · 3 comments
Open

redirects within directory structure #43

Mihoko-Okayami opened this issue Mar 8, 2013 · 3 comments

Comments

@Mihoko-Okayami
Copy link

Hello,

The plugin works fine, except the links to "recent posts" generate a link that ends with "?action=lastpost" that redirects (example) =>

HTML link = www.poney-team.fr/sujet/21-joueurs-les-commandes-utiles-en-jeu?action=lastpost

Redirects to : http://www.poney-team.fr/sujet/sujet/21-joueurs-les-commandes-utiles-en-jeu?pid=48#pid48

Problem => /sujet/sujet/

Site : www.poney-team.fr
MyBB : 1.6.9
Google SEO : 1.6.5
PluginLibrary : 11
Server : lighttpd on centos

Sorry for my english.

@frostschutz
Copy link
Owner

MyBB really doesn't like directory structures...

showthread.php:291:     header("Location: ".htmlspecialchars_decode(get_post_link($newpost['pid'], $tid)).$highlight."#pid{$newpost['pid']}");
showthread.php:326: header("Location: ".htmlspecialchars_decode(get_post_link($pid, $tid))."#pid{$pid}");
showthread.php:356: header("Location: ".htmlspecialchars_decode(get_post_link($pid, $nextthread['tid']))."#pid{$pid}");
showthread.php:387: header("Location: ".htmlspecialchars_decode(get_post_link($pid, $nextthread['tid']))."#pid{$pid}");

add bburl like so: "Location: {$settings['bburl']}/"

@Mihoko-Okayami
Copy link
Author

Fixed, thank you very much!

Useful information to add to the wiki?

@gwinston
Copy link

I tried adding this to the showthread in those 4 locations, but it still doesn't work. What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants