Custom button to open site in a new tab

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
grethelgomez
Posts: 19
Joined: Fri Feb 10, 2017 6:10 pm

Custom button to open site in a new tab

Post 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.
cristi_talau
Posts: 495
Joined: Thu Sep 04, 2014 4:22 pm

Re: Custom button to open site in a new tab

Post 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
grethelgomez
Posts: 19
Joined: Fri Feb 10, 2017 6:10 pm

Re: Custom button to open site in a new tab

Post by grethelgomez »

That's perfect. Looking forward to the new version!

Thanks!
Grethel Gomez.
cristi_talau
Posts: 495
Joined: Thu Sep 04, 2014 4:22 pm

Re: Custom button to open site in a new tab

Post 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
Post Reply