Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Open new browser window using "window.open" method is not working in the ForgeApp

Chitra Sankar June 25, 2022

Hi Team,

I'm trying to open an external link from the Forge app using Windows.open('URL'). I am not able to open a new browser window. But I am able to open a new browser tab using the router.open() method  provided by forgeApp. 

The window will be opened in a new window in accordance with the needs of the business.

Below is the example code snippet.

window.open("https://www.google.com", '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes')
Getting the below error:
ApprovalGroups.jsx:144 Blocked opening 'https://www.google.com' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set."

2 answers

0 votes
Takafumi Ohtake -Ricksoft-
Atlassian Partner
June 26, 2022

Hi @Chitra Sankar ,

Your question is related to this one.

I suggest you post questions about development to https://community.developer.atlassian.com/. Atlassian staff and community members would answer technical questions.

0 votes
Jack Brickey
Community Champion
June 26, 2022

Is this specific to Jira? Unsure if you are in the correct place for help here.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events