Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the first user is setup with a new install of Oqtane and clicks on My Page an error is logged #2978

Closed
vnetonline opened this issue Jul 6, 2023 · 4 comments

Comments

@vnetonline
Copy link
Contributor

vnetonline commented Jul 6, 2023

When the first user (Host User) is setup with a new install of Oqtane and clicks on My Page an error is logged

image

image

The error is logged because there is no mypage/host which exists. so to fix this when the user is an Host User and/or Administrator User then they are not to have personalized pages??

@sbwalker & @leigh-pointer your thoughts?

@sbwalker
Copy link
Member

sbwalker commented Jul 7, 2023

The behavior is supposed to be:

  • if a page is flagged as personalizable then if a user navigates to that page...

  • the system checks if a personalized version of that page has been previously created for the user. If a personalized page exists:

  • it redirects the user to their personalized page

  • else it displays the standard page and the user has the ability to click the Edit icon at the top left - which will dynamically create a personalized page for them and navigate them to it.

  • other users can navigate to the personalized page based on its unique path and view the page content.

@vnetonline
Copy link
Contributor Author

vnetonline commented Jul 7, 2023

@sbwalker I got the behaviour, but what I am trying to say is that when the host user which you created at the installation of Oqtane visits the My Page which is personalized it looks for mypage/hosts.

Host's personalised page is not created and the site starts logging errors every time you visit My Page because mypage/host doesn't exist

screen2gif-error-when-host-vists-mypage

@vnetonline
Copy link
Contributor Author

If the user has the Role of Host Users then the host user should not have a personalised page??

sbwalker added a commit that referenced this issue Jul 10, 2023
fix #2978 - allow host users and admins to have personalized pages
@sbwalker
Copy link
Member

@vnetonline I finally had a chance to take a closer look at this issue. You are correct that an error should not be logged for this scenario. The SiteRouter needs to be able to check if a personalized page exists, and if not, continue processing without logging an error. This has been resolved.

In regards to the differences in user behavior... if the user who is logged in has Edit rights to the current Page then clicking Edit will put them into Edit Mode for that page. Previously this would NOT create a personalized page for them (because there would be no way for them to administrate the page). This has now been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants