OpenSanghaFoundation / OSF

Bug/Feature requests tracking and documentation managament
https://opensanghafoundation.org
0 stars 0 forks source link

Messages and User Profile Don't Redirect Properly for those Without an Account #42

Closed nowmichaelclark closed 2 days ago

nowmichaelclark commented 1 month ago

Describe the bug Those without an account are redirected to the OSF Home page when they click User Profile or Messages from the Profile Tab.

To Reproduce Steps to reproduce the behavior:

  1. Log Out or Use Incognito to go to opensanghafoundation.org
  2. Click on 'Profile' at the top. Then click on 'User Profile'.
  3. See that this redirects to the Home Page.
  4. Click on 'Profile' again at the top. Then click on 'Messages'.
  5. See that this redirects to an empty messages page.

Expected behavior Clicking these buttons when not logged in can instead redirect to the Sign Up/Login page. Alternatively, there can be a redirect to a page that reads "Please login to see This Page".

Screenshots https://github.com/OpenSanghaFoundation/OSF/assets/162073748/14a0ceaa-20ab-4b93-a498-8d786929d50a

coiby commented 1 month ago

Hi @OSFOSF,

How did you manage to redirect the register page to to register-2 page? Maybe we fix this issue in the same way.

OSFOSF commented 1 month ago

that was done automatically when the page was added and could be fixed on the login page On Saturday, June 1, 2024 at 05:39:48 PM GMT+7, Coiby @.***> wrote:

Hi @OSFOSF,

How did you manage to redirect the register page to to register-2 page? Maybe we fix this issue in the same way.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

OSFOSF commented 1 month ago

now if user not logged in they are directed to the login page when then click menu profile and community

OSFOSF commented 1 month ago

fixed

coiby commented 1 month ago

I don't think this has been fixed. Users are still redirected to the home page when visiting /user page. Meanwhile, I've asked for UM team support on this issue.

coiby commented 3 weeks ago

I've applied the following solution as suggested by the UM support team (there is an "Ultimate Member: Content Restriction" setting when editing the page), Screenshot_2024-06-24_20-44-06

Now if an anonymous user will be redirected to the login page if he/she visits https://opensanghafoundation.org/newsite/messageum/ or https://opensanghafoundation.org/newsite/user

coiby commented 2 weeks ago

Oh, there is a side-effect of this change which is the user/USERNAME page is now limited to logged-in user only which is bad for SEO. So I reverted the change and asked UM's support team again if there a solution without this side-effect.

OSFOSF commented 2 days ago

https://opensanghafoundation.org/newsite/messageum/ takes them to the login page and thats good https://opensanghafoundation.org/newsite/user/sam/ takes them to sam's page and is correct https://opensanghafoundation.org/newsite/user takes the anonymous user to /newsite/ and thats goo enough and google has found all our users so i see no issue here