# Ood v2 ignoring manifest's new\_window boolean

**URL:** <https://discourse.openondemand.org/t/ood-v2-ignoring-manifests-new-window-boolean/1862>\
**Category:** Get Help\
**Created:** [January 10, 2022, 5:52pm UTC](https://discourse.openondemand.org/t/ood-v2-ignoring-manifests-new-window-boolean/1862 "2022-01-10T17:52:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonbuechler](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jasonbuechler/32/302_2.png) [@jasonbuechler](https://discourse.openondemand.org/u/jasonbuechler)\
**Post date:** [January 10, 2022, 5:52pm UTC](https://discourse.openondemand.org/t/ood-v2-ignoring-manifests-new-window-boolean/1862/1 "2022-01-10T17:52:48Z")

</div>

I’m currently [working on deploying the html5-version of the matlab app](https://discourse.openondemand.org/t/misadventures-in-non-vnc-matlab-app-construction/1837/2) which has a uniquely annoying behavior of always opening in the same browser tab/window, instead of opening a new one, when I click the blue “Connect to matlab” button.

The [documented new\_window boolean](https://osc.github.io/ood-documentation/latest/app-development/interactive/manifest.html?highlight=new_window) was not originally present in this app, but was nonetheless monopolizing the browser window. I tried setting this to true (both quoted and unquoted) without seeing any change.

This is true both for system and dev/sandbox apps, and for both ondemand 2.0.18 and 2.0.20.

```auto
[root@ondemand-dev sys]# cd /var/www/ood/apps/sys/
[root@ondemand-dev sys]# cat files/manifest.yml matlab_html5/manifest.yml
---
name: Files App
description: |-
  The Open OnDemand Files App
category: Files
icon: fa://folder
role: files
url: files
new_window: false
---
name: Matlab_HTML5
category: Interactive Apps
role: batch_connect
new_window: true

```

Now, I can briefly fix this manually, but the My Interactive Sessions list refreshes frequently, clearing such a hack and making me uninterested in investing much time in trying to patch this with similar hacking.

```javascript
document.querySelectorAll('button.btn-primary')[0].formTarget="_blank"

```

jason buechler  
nau monsoon

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [January 10, 2022, 8:44pm UTC](https://discourse.openondemand.org/t/ood-v2-ignoring-manifests-new-window-boolean/1862/2 "2022-01-10T20:44:15Z")

</div>

That new window is for internal apps - like If you want open the files app in a new window (new with respect to the dashboard).

What you need to modify is your `view.html.erb` file to be sure that it’s `target="_blank"` in the form element.

> <https://github.com/OSC/bc_osc_rstudio_server/blob/4cd0f162ede06010fc8c09011ba7057444dc1bdb/view.html.erb#L1>

There could/should be a way to do this in javascript to if that doesn’t work for you directly.

---

<div class="post-metadata">

**Author:** ![jasonbuechler](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jasonbuechler/32/302_2.png) [@jasonbuechler](https://discourse.openondemand.org/u/jasonbuechler)\
**Post date:** [January 10, 2022, 11:00pm UTC](https://discourse.openondemand.org/t/ood-v2-ignoring-manifests-new-window-boolean/1862/3 "2022-01-10T23:00:14Z")

</div>

Ooooof that’s so obvious in retrospect.

Thanks for the quick reply!

–jason

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [July 9, 2022, 11:00pm UTC](https://discourse.openondemand.org/t/ood-v2-ignoring-manifests-new-window-boolean/1862/4 "2022-07-09T23:00:46Z")

</div>

Closed on July 9, 2022, 11:00pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
