Open yazevedopure opened 6 years ago
Hi, external links do not work in my case. What should be the expected outcome of an external link? I expect a link in the navbar.
In my case also a new entry (like any other model) is created in the admin interface:
Is there something I did wrong? Also the need of an array of objects is not in the current documentation.
What's the resolution for this? We could also use this fix @stennie
Expected behavior
Clicking on an external link in Admin UI that link should be triggered
Actual/Current behavior
The link is shown, but nothing happens clicking on it
Steps to reproduce the actual/current behavior
(BTW the main documentation misses this example; the new documention misses the [] around the link definition)
Workaround
I've been able to solve the problem changing few lines in /keystone/admin/client/App/components/Navigation/Primary/index.js starting from line 92 (renderNavigation function)
The same problem, but slightily different, is present in /keystone/admin/client/App/components/Navigation/Secondary/NavItem.js In that case the onClick event should be removed if the link is external or modified in order to allow the default action (but I didn't tried that)
Since these links are external I'd suggest the use of target="_blank".
Environment