-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Added a "target" option to specify the target attribute for the menu links #907
Conversation
Useful when wanting to open a link in a new tab where you simply set the `target` key to `_blank`
Added option to add target attribute to menu links
I don't like this feature. It's "specific" behavior for something a bit restrictive. Why not add a |
I agree with @Pierstoval on this. |
I understand the concerns of @Pierstoval and @ogizanagi ... but I still think is OK to add this small feature. I don't plan to add more configuration options for menu items, so this is the last one (and that means that we won't clutter the menu feature). Besides, we allow links to absolute URLs and external systems in the menu, so it's important to be able to open them in new tabs/windows. The problem with So, I'm going to merge this feature. But, in the future, we can reconsider this decision. And since the feature is minimal, and removing it won't break the backend, BC breaks won't matter. Thanks! |
…for the menu links (maldoinc, javiereguiluz) This PR was merged into the master branch. Discussion ---------- Added a "target" option to specify the target attribute for the menu links This pull request finishes the work done originally by @maldoinc in #845. Commits ------- 5a00dae Added tests for the feature 13c1e58 Fixed tests 84584b3 Tweaked the new feature af018e0 Merge pull request #1 from maldoinc/maldoinc-patch-menu-target 142531f Added option to add target attribute to menu links
Precisely, having Here, when you add "magic" (= a seemingly "logical" option that's transformed into a basic html parameter) you induce bc breaks when the I personally have to change the class of one link in some of my backends, and another will use javascript so it needs an id and an empty href attribute. There's always room for full flexibility, especially when you follow good/standard practices that are used elsewhere the same way. And for the |
This pull request finishes the work done originally by @maldoinc in #845.