# Wrong ui-page when deploy

**URL:** https://discourse.nodered.org/t/wrong-ui-page-when-deploy/63303
**Category:** Dashboard
**Created:** [31 May 2022 14:05 UTC](https://discourse.nodered.org/t/wrong-ui-page-when-deploy/63303 "2022-05-31T14:05:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RuneStone](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@RuneStone](https://discourse.nodered.org/u/RuneStone)
#### Post date: [31 May 2022 14:05 UTC](https://discourse.nodered.org/t/wrong-ui-page-when-deploy/63303/1 "2022-05-31T14:05:27Z")

</div>

I am using some pages from node red ui embedded on another system(2) using iframe.  
I made a script that reloads the page every 60s so the iframe does not cache..  
My problem now is that when i change anything in node red and deploy the page in the iframe in system 2 gets changed to the node red ui start page and does not reload to the correct page until i refresh my browser.. This will be a big problem since the browser will run on a smart-tv..

---

<div class="post-metadata">

### Author: ![RuneStone](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@RuneStone](https://discourse.nodered.org/u/RuneStone)
#### Post date: [31 May 2022 14:08 UTC](https://discourse.nodered.org/t/wrong-ui-page-when-deploy/63303/2 "2022-05-31T14:08:54Z")

</div>

I use this in a template node for reload the page  
In system 2 i use an iframe with [http://dashboard.mycompay.se:1880/ui/#!/1](http://dashboard.mycompay.se:1880/ui/#!/1)  
1 is my hidden tab i want to show.

```auto
<script>
if (window.top!=window.self){
    // In a Frame or IFrame
    document.body.classList.add('iframed')
}

    $(document).ready(function() {
        // auto refresh page after 60 second
        setInterval('refreshPage()', 60000);
    });
 
    function refreshPage() { 
        location.reload(); 
    }

</script>
<style>
  .iframed #toolbar {
    display: none;
  }
</style>

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [30 June 2022 14:09 UTC](https://discourse.nodered.org/t/wrong-ui-page-when-deploy/63303/3 "2022-06-30T14:09:07Z")

</div>

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