The International Simutrans Forum

 

Author Topic: Bookmarks (not quite) working after authentication  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

Offline isidoro

  • Devotee
  • *
  • Posts: 1119
Bookmarks (not quite) working after authentication
« on: June 11, 2018, 10:15:41 PM »
I usually come to this forum once a day to see the "Recent unread posts", which is very convenient.  For this purpose, I have a bookmark pointing to:
https://forum.simutrans.com/index.php?action=unread

From some time ago the link doesn't work any longer.  After I log in, the main page is shown and I have to press the bookmark again to see the "Recent unread posts".  That wasn't the case just before the changes of the forum.

N.B.: it isn't something I can't live without, but just in case it has an easy fixing.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #1 on: June 12, 2018, 04:21:46 AM »
Confirmed. But I did not change anything on this regard, maybe it has to do with the latest SMF update that changed some urls.

Can you remember if it was after the theme change or if it was before that?

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #2 on: June 12, 2018, 04:42:47 PM »
The link I use is http://forum.simutrans.com/index.php?action=unread;all;start=0

If that solves it, that would be great. It works for me, at least.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #3 on: June 12, 2018, 05:24:26 PM »
Even this url redirects me to the front page after logging in.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #4 on: June 12, 2018, 08:54:28 PM »
That's weird. Surely it's not a matter of permissions since we're both forum admins… WTF? SMF is a weird piece of.......software. lol

But I assure you it's the bookmark from my browser which I use every time to get to the forum. :/

Offline isidoro

  • Devotee
  • *
  • Posts: 1119
Re: Bookmarks (not quite) working after authentication
« Reply #5 on: June 12, 2018, 10:28:48 PM »
Confirmed. But I did not change anything on this regard, maybe it has to do with the latest SMF update that changed some urls.

Can you remember if it was after the theme change or if it was before that?

I'd say that it was before the change of theme, but I can't tell for sure.  Sorry.  I should have reported it just when it happened the first time.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #6 on: June 13, 2018, 01:09:51 AM »
Both of you please try again and tell me what shows up in the Session url below the main menu. This debug is enabled only for admins and isidoro.

Also tell me what browser you are using and if you block JavaScript or not.

@isidoro Disable JavaScript, open your bookmark logged out, force refresh (Ctrl+F5) the page and try to login. Then tell me if you are redirected to the front page or not and the session url.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #7 on: June 14, 2018, 02:09:33 AM »
Just a note - it's blank for me

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #8 on: June 14, 2018, 03:58:42 AM »
Thanks Isaac, now I'm almost sure what it is, but to be sure I want to check what isidoro gets.

Offline isidoro

  • Devotee
  • *
  • Posts: 1119
Re: Bookmarks (not quite) working after authentication
« Reply #9 on: June 14, 2018, 11:15:50 PM »
These are my data:
1) I use the latest Tor browser. 7.5.5 (based on Mozilla Firefox 52.8.1) (64-bit)
2) When I first logged in (with Javascript enabled), the debug url was:
https://forum.simutrans.com/index.php?PHPSESSID=ecq9jndpn2od01kjv3ua2hfjc4&action=enotify
3) And it didn't work as usual (I was redirected to the main page)
4) When I disabled Javascript, the debug url was blank
5) And it did redirect to the "recent unread topics" and not the main page.

Hope it helps.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #10 on: June 15, 2018, 02:23:36 AM »
Yep, it's the enotify mod. It makes a call with the JS when you login, that's why you see a url with JS but no url without.

I just don't know why it does not affect Isaac.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #11 on: June 15, 2018, 07:53:52 PM »
Well, I suppose we could get rid of the plugin, then. It seemed to be decently liked, but it's not worth it if it breaks functionality.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #12 on: June 15, 2018, 11:14:09 PM »
I tried fixing but no success. I guess the only way really is to remove it. If it has a fix it's probably more complicated than worth it.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #13 on: June 16, 2018, 02:18:45 PM »
I've uninstalled the mod.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2831
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Bookmarks (not quite) working after authentication
« Reply #14 on: June 16, 2018, 04:45:33 PM »
It really was it, now I'm not redirected to the front page. 👍

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #15 on: June 16, 2018, 05:13:38 PM »
I wish SMF had better support. There's plenty of useful things we could have if it did. meh.

Although the most important thing I wish we had was Markdown.

Offline isidoro

  • Devotee
  • *
  • Posts: 1119
Re: Bookmarks (not quite) working after authentication
« Reply #16 on: June 16, 2018, 06:18:29 PM »
Thank you both, guys.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3585
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Bookmarks (not quite) working after authentication
« Reply #17 on: June 17, 2018, 02:11:48 AM »
Totally on An_dz. Thank you, An_dz for the work you've been doing on the forum and elsewhere!