Page 1 of 1

Custom button to open site in a new tab

Posted: Thu Oct 22, 2020 6:08 pm
by grethelgomez
Hi,
We have a custom framework for our Oxygen XML Editor and Web Author apps.
In the custom framework, we recently added a button to facilitate writers accessing a Sharepoint site. This button works okay on desktop: the default browser is opened with the site. In Web Author, the preview window opens empty and after clicking the button Open in a new tab, a new tab opens with the URL starting by spo-https://.

In the custom framework, this is how the action is defined:
Operation: OpenInSystemAppOperation
resourcePath:

Code: Select all

https://example-site-for-question.com/Shared%20Documents/Forms/AllItems.aspx
mediaType: html

We also tested a shortened URL but it also didn't work:

Code: Select all

https://example-site-for-question.com/Shared%20Documents

Any suggestions to get this working will be very appreciated.
Thanks in advance!
Grethel Gomez.

Re: Custom button to open site in a new tab

Posted: Fri Oct 23, 2020 12:09 pm
by cristi_talau
Hello,

We are aware of this problem and it will be fixed in Web Author version 23.0 which is scheduled in about a month. We will update this thread when the release will be available.

The problem is caused because the web page that you want to open does not like to be loaded in an iframe preview. The fix was to skip the preview dialog and open the resource directly.

Best,
Cristian

Re: Custom button to open site in a new tab

Posted: Fri Oct 23, 2020 3:12 pm
by grethelgomez
That's perfect. Looking forward to the new version!

Thanks!
Grethel Gomez.

Re: Custom button to open site in a new tab

Posted: Fri Nov 20, 2020 4:52 pm
by cristi_talau
I am writing to let you know that Oxygen XML Web Author version 23 was released and that now links are opened in a new tab directly, without a preview. This way, even if a page does not support being loaded in an iframe can now be opened.

For more details about this release you can check out the what's new page: https://www.oxygenxml.com/xml_web_author/whats_new.html .

Best,
Cristian