If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
I can easily add a URL to the Navbar from the Administration->User Interface screen, but is there any way to make it target="_blank" so that the URL opens in a new tab?
Maybe revise the need of opening in a new tab. Espo won't allow leaving the page if the form is edited but not saved. Not losing entered data is one of the main reason why this feature is used. Forcing opening links in a new tab in most cases is a bad practice. Though many old school developers like to use it. Better to let a user to decide how they want the link to be opened.
Anchor links1 may have a target attribute which controls what happens when that link is clicked. One of the possible values of that attribute is _blank, which
The Good Reason in this case is the link opens our Zendesk support site, rather than something within Espo, so they'll usually need to use it whilst also keeping whatever they were working on.
The way I've solved it was to Extend navbar.js and use the afterRender event to add the target attribute.
@BattleMetalChris
I encountered the same issue. Based on your suggestion, I added the following code to the afterRender event in navbar.js, but it is not working.
client/src/views/site/navbar.js
Comment