plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

A successful login redirects a user to `pulbliclab.org/dashboard` in every situation

Open Rishabh570 opened this issue 8 years ago • 24 comments

Please describe the problem (or idea)

After a successful login, the user gets redirected to https://publiclab.org/dashboard always even when he is not supposed to...

What happened just before the problem occurred? Or what problem could this idea solve?

I was here: https://publiclab.org/wiki/multispectral-imaging#Hardware+Mods and clicked Add your hardware modification here without logging in, so it said me to log-in which is fine but after I got logged-in it redirected me to dashboard instead of the editor page...and I had to manually head over to that page again to add hardware modification. This can prove to be a pain for the user...

What did you expect to see that you didn't?

After the user logs in, he/she should get redirected to the page he was trying to access just before logging in so that the user doesn't have to do the extra labour :)

Please show us where to look

https://publiclab.org/wiki/multispectral-imaging#Hardware+Mods

What's your PublicLab.org username?

icode365

This can help us diagnose the issue:

Browser, version, and operating system

Many bugs are related to these -- please help us track it down and reproduce what you're seeing!


Thank you!

Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.

To learn how to write really great issues, which increases the chances they'll be resolved, see:

https://publiclab.org/wiki/developers#Contributing+for+non-coders

Rishabh570 avatar Oct 09 '18 07:10 Rishabh570

@Rishabh570 This is because callback from Github can return to a particular url which is authorized in Github app console.

championpaddler avatar Oct 09 '18 07:10 championpaddler

@sk9331657 Yep, that's true. We can at least link that button on the dashboard so that user doesn't have to manually head over to that URL again :)

Rishabh570 avatar Oct 09 '18 07:10 Rishabh570

@Rishabh570 Can this be implemented by using friendly forwarding

champagnepappi avatar Oct 09 '18 13:10 champagnepappi

@champagnepappi I actually never worked on Ruby/Rails, so can't tell...but if you're sure about that, please go ahead :+1:

Rishabh570 avatar Oct 09 '18 13:10 Rishabh570

@Rishabh570 I'm sure friendly forwarding can do the fix. Leme try it out

champagnepappi avatar Oct 09 '18 14:10 champagnepappi

sure, go ahead :+1:

On Tue, Oct 9, 2018, 7:32 PM Kevin Santos [email protected] wrote:

@Rishabh570 https://github.com/Rishabh570 I'm sure friendly forwarding can do the fix. Leme try it out

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3656#issuecomment-428203983, or mute the thread https://github.com/notifications/unsubscribe-auth/AYTX_LRNA26KFrKBbcOaK7oW6gaeqDfEks5ujKxpgaJpZM4XRyVm .

Rishabh570 avatar Oct 09 '18 14:10 Rishabh570

I would like to work on this issue, but I am having trouble locating this on my local machine. Is there a way I can imitate this issue on my local machine? Thanking you in advance! @gauravano

shubhscoder avatar Oct 30 '18 18:10 shubhscoder

Hi @shubhscoder, you can take a look at issue description to reproduce this issue...

Rishabh570 avatar Oct 31 '18 07:10 Rishabh570

Yeah sure ! I ll do that .

On Wed, Oct 31, 2018, 12:56 PM Rishabh Rawat [email protected] wrote:

Hi @shubhscoder https://github.com/shubhscoder, you can take a look at issue description to reproduce this issue...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3656#issuecomment-434587223, or mute the thread https://github.com/notifications/unsubscribe-auth/ARofxZGuqajtf-ez4rzbAXpbWrItcYVWks5uqVCjgaJpZM4XRyVm .

shubhscoder avatar Oct 31 '18 10:10 shubhscoder

I found that this issue might be related to https://github.com/publiclab/plots2/issues/3384 There's already been work going on for this. If you want to help in this one, please have a look at the PR and feel free to share your views. Just wanted to make sure, we don't end up with multiple fixes for the same problem.

Radhikadua123 avatar Oct 31 '18 12:10 Radhikadua123

Can you clarify if your login was using Google/Facebook/Twitter/GitHub, or using a username/password? If the former, i think you're right that it's the same as #3384! Thank you!

On Wed, Oct 31, 2018 at 8:36 AM Radhika Dua [email protected] wrote:

I found that this issue might be related to #3384 https://github.com/publiclab/plots2/issues/3384 There's already been work going on for this. If you want to help in this one, please have a look at the PR and feel free to share your views. Just wanted to make sure, we don't end up with multiple fixes for the same problem.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3656#issuecomment-434670437, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ8mAM7lvsS67gEY6W0vZQFLZfsEtks5uqZkvgaJpZM4XRyVm .

jywarren avatar Oct 31 '18 16:10 jywarren

I think this issue is solved and we can close it.

SidharthBansal avatar Dec 02 '18 09:12 SidharthBansal

Umm...but the behaviour is the same as described in the issue description...I guess it is not resolved it

Rishabh570 avatar Dec 03 '18 06:12 Rishabh570

Yeah, it has not resolved. I will be submitting a patch if anyone else is not working on this

SidharthBansal avatar Dec 03 '18 06:12 SidharthBansal

That would be great!

Rishabh570 avatar Dec 03 '18 10:12 Rishabh570

We are having multiple links across the website where the return_to parameter is missing. If we will add return_to to various places, wherever the behaviour is inappropriate this will solve our problem

SidharthBansal avatar Dec 07 '18 21:12 SidharthBansal

Creating the new modal and linking return_to actions in the modal might help. Trying this approach right now. Hope it helps

SidharthBansal avatar Dec 08 '18 12:12 SidharthBansal

#4227 @kevinzluo you can work on this also. This is highly related to the last PR you did. These two tasks linked are apart from 10 task I was talking before.

SidharthBansal avatar Dec 10 '18 05:12 SidharthBansal

@kevinzluo may I know the pr number for this issue?

SidharthBansal avatar Dec 10 '18 11:12 SidharthBansal

https://codein.withgoogle.com/dashboard/tasks/5545998546894848/ @kevinzluo this is the task number. Please claim it after telling me the pr number in which the potential fix lies.

SidharthBansal avatar Dec 10 '18 11:12 SidharthBansal