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

Nice to have: rendered redirect URL #58

Open
RonaldKools opened this issue Sep 14, 2018 · 0 comments
Open

Nice to have: rendered redirect URL #58

RonaldKools opened this issue Sep 14, 2018 · 0 comments

Comments

@RonaldKools
Copy link
Contributor

RonaldKools commented Sep 14, 2018

Some templatesets (like Metro) use a popup to login. This means the redirect URL in the template variable S_LOGIN_REDIRECT will be filled with the current URL when you are reading a thread in viewtopic.php. This works perfectly without SEOUrls enabled, but it breaks when you use this extension (probably because phpBB doesn't "see" the topic ID).

A simple fix is to add this to listener.php:

'S_LOGIN_REDIRECT' => append_sid($this->base->generate_topic_link($event['forum_id'] , $data['forum_name'], $event['topic_id'], $data['topic_title'], $event['start'])),

Maybe this can be added in a future release?

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

1 participant