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

Add new settings to AdminSettings to visit the site on the same page #14319

Closed
MikeAlhayek opened this issue Sep 12, 2023 · 8 comments · Fixed by #14435
Closed

Add new settings to AdminSettings to visit the site on the same page #14319

MikeAlhayek opened this issue Sep 12, 2023 · 8 comments · Fixed by #14435
Milestone

Comments

@MikeAlhayek
Copy link
Member

MikeAlhayek commented Sep 12, 2023

Currently, when a user clicks on "Visit Site" on the navbar on the admin theme, a new tab opens every time. For some users, it is better to visit the site on the same page. Adding an option on AdminSettings like this will be helpful.

public bool VisitSiteOnNewTab { get; set; } = true
@hishamco
Copy link
Member

I disagree for better UX it should open the site in a new tab so the current user doesn't lost the current context

@MikeAlhayek
Copy link
Member Author

@hishamco yes I agree with you. but this is opinion/preference based. We should keep it to open in a new tab by default but give the admin the option to change it.

@hishamco
Copy link
Member

Maybe a better option is to create such links as menu items that can be controlled: title, link, IsOpenInNewTab ... etc

@MikeAlhayek
Copy link
Member Author

That would be a good option if the admin top navbar items were a shape like we did recently for the UserMenu. Then the user can change the behavior of that shape. But, either way making this a settings based is a fair ask and make sense to me. We'll see what others think about this

@sebastienros
Copy link
Member

Does everything have to be a setting? What if someone doesn't like the font of the link? Or doesn't like the link? I'd rather have it customizable through theming, so a shape. Shouldn't be hard to do?

@sebastienros sebastienros added this to the 1.x milestone Sep 28, 2023
@hishamco
Copy link
Member

As Seb said not everything should be in the admin settings

@MikeAlhayek
Copy link
Member Author

@sebastienros Anyone can change a
Setting from the UI. Shapes however, need a developer that know what they are doing. But, yeah sure we can make the menu items as a shape here too.

@sebastienros
Copy link
Member

What about changing the default target such that users can decide to open in new windows or not?
Example: Wordpress opens in place and I couldn't find an option to change the behavior.

image

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

Successfully merging a pull request may close this issue.

3 participants