Arduino Forum

Community => Website and Forum => Topic started by: ballscrewbob on Mar 13, 2018, 03:28 pm

Title: Email links dont always work.
Post by: ballscrewbob on Mar 13, 2018, 03:28 pm
Just checking to see if anyone else if having issues using email links to go to a topic they are involved in.

Started a couple of days ago where the link is just taking me back to the top of the forum instead of the topic itself as it would normally.

Sometimes they work and sometimes not...
So hard to define a common cause.


Title: Re: Email links dont always work.
Post by: lucaosti on Mar 14, 2018, 09:42 am
The common cause is actually whether or not you are considered logged in by the forum.

If the session has expired but you are still considered logged on the Arduino SSO, a refresh of the session is triggered, causing a couple of redirects and eventually leading you back where you started.

In that case the forum has to save the URL you are trying to see, but only if it matches a whitelist.


I published just now a little fix to handle more cases: let me know if works correctly (or blame me if you see other things suspiciously broken since the last ~10 minutes)
Title: Re: Email links dont always work.
Post by: ballscrewbob on Mar 14, 2018, 01:49 pm
Thanks Luca will monitor it.

Title: Re: Email links dont always work.
Post by: sterretje on Mar 18, 2018, 02:06 pm
Not email related, but might be related.

I've also noticed a change in behaviour recently. I always leave a section or thread open on the browser of my cell phone and if I (after a while) want to check for updated topics I simply tap 'back' which will force a refresh of the previous forum page that was loaded and next I can click the updated topics link.

This approach used to work 100% of the time but recently the behaviour changed. Recently tapping 'back' often but not always results in the forum navigation links not showing (as if one is not logged in). One or more 'back' is required or leaving the forum completely and next going there from scratch.
Title: Re: Email links dont always work.
Post by: ballscrewbob on Mar 18, 2018, 02:38 pm
Also seen that too sterretje....

Not quite the same but if I have a tab open and havent used it for a few hours ( <10) occasionally I will be logged out on that tab even if I am logged in on a different tab.

Think your issue and what I have seen are related.
Certainly something happening in the back.

Title: Re: Email links dont always work.
Post by: lucaosti on Mar 19, 2018, 01:21 pm
This approach used to work 100% of the time but recently the behaviour changed. Recently tapping 'back' often but not always results in the forum navigation links not showing (as if one is not logged in). One or more 'back' is required or leaving the forum completely and next going there from scratch.
I'm not aware of any changes that could have changed that behaviour (and it's a really strange one), are you sure is not related to the browser you are using? Sometimes mobile browsers have a really aggressive cache.


Quote
Not quite the same but if I have a tab open and havent used it for a few hours ( <10) occasionally I will be logged out on that tab even if I am logged in on a different tab.
Getting logged out while logged in another tab in the same browser shouldn't ever happen. Are you able to reproduce the issue consistently?

--

Note: those issues are a bit OT, I think. Can I suggest you to open a couple of issues on https://github.com/arduino/forum-issues ?
I know it looks like we don't really look at that repo, but we do. Hopefully we'll be able to actually tackle them in the near future.

Title: Re: Email links dont always work.
Post by: sterretje on Mar 19, 2018, 02:19 pm
I'm not aware of any changes that could have changed that behaviour (and it's a really strange one), are you sure is not related to the browser you are using? Sometimes mobile browsers have a really aggressive cache.
I'm just a (cell phone) user; Android 7.0.0, Chrome 65.0.3325.109

It might have started after an update of one or both, but I can't verify that; it's one of those things that one pays little attention to.