Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Redirect on login

Aloittaja ctr, marraskuu 18, 2008, 09:31:04 AP

« edellinen - seuraava »

ctr

I require users to be logged in to view topics.

If I send a link to someone, let's say this http://www.mysite.com/forum/index.php?topic=355.0 [nofollow] and they aren't logged in when they click the link, they go to the index page when they've logged in.

Why aren't they redirected to the link they clicked?  Can I edit this somehow?

Thanks, Cliff

<edited to remove comma from link>

ccbtimewiz

Is that comma included with the link?

ctr

Yes, but it's there because when I pasted the link (without the comma), I guess I typed the comma too close to the link and SMF added it to the link displayed here.
The URL's displayed on the forum do not have a comma.

ctr

Any suggestion on how to fix this?
I am using 2.0 Beta 4 with the default theme, and no modifications.

Kermit

Actually if you have no modifications on your forum,the user should not be redirected to index.php after the login , try to renew your Sources/LogInOut.php file
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

ctr

Thanks for the suggestion.
I uploaded all new files, but it still redirects to the index.

ctr

Does anyone have any other suggestions on why this is happening?  I have all original / unmodified files.  There are no mods of themes installed.

Oldiesmann

Sorry for the delayed response...

Does this make any difference?

Sources/Subs-Auth.php

Find
Koodi (Line 247) [Valitse]
$_SESSION['login_url'] = $_SERVER['REQUEST_URL'];

Add after that
$_SESSION['old_url'] = $_SERVER['REQUEST_URL'];
Michael Eshom
Christian Metal Fans

ctr

Thanks Oldiesmann, that didn't work either.
This is weird.  I've deleted any non-standard files, uploaded all new files and it still won't redirect correctly if I am not logged in.

greyknight17

ctr, is this issue resolved now?

I can't reproduce this error on a clean SMF 2.0 beta 4 install. It seems to be working fine. Any changes made to your forum before this problem began?

ctr

Lainaus käyttäjältä: greyknight17 - helmikuu 27, 2009, 11:53:11 AP
ctr, is this issue resolved now?

I can't reproduce this error on a clean SMF 2.0 beta 4 install. It seems to be working fine. Any changes made to your forum before this problem began?
Hi,
It still happens.
Like I said, I uploaded all new files, and it still redirects to the index page if I wasn't logged in.  It happens at work and at home.

Cliff

JimM

I'm also not able to reproduce this on my 2.0RC1 test install.  ctr, any update on this one?
Jim "JimM" Moore
Former Support Specialist

Advertisement: