Closed micgro42 closed 7 years ago
I just noticed this isn't working for external links. I look into it.
Unfortunately I see no easy way to differentiate between internal and external links 😞
I'll have a look at it next week.
That commit 14c22af should resolve the problem with the external links.
I'll merge the request. The JSINFO should still only be added when this is the multi orphan page. But that can be done in a second stage.
Basically, all modern browsers (or at least Firefox and Chrome) block popups (i.e. windows opened by
window.open
) by default. So this makes for a suboptimal user experience.The way around this is to add the final URL and target="_blank" to the link by default and let the browser execute the default action.
When creating the link, it is necessary to differentiate between the different actions. We currently could use the
label
-key, however, at some point, we might want to localize that 'label' key. Hence anactionId
is added to reliably identify the action.This should fix #20
PS: I we could now remove the
viewPage
andviewUrl
cases from the ajax handler in the backend?