# Worldmap Dashboard 2.0 iFrame example - error too many redirects

**URL:** <https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123>\
**Category:** Dashboard\
**Tags:** dashboard-2, uibuilder\
**Created:** [18 May 2025 14:25 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123 "2025-05-18T14:25:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![iot.regenesis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iot.regenesis/32/100846_2.png) [@iot.regenesis](https://discourse.nodered.org/u/iot.regenesis)\
**Post date:** [18 May 2025 14:25 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/1 "2025-05-18T14:25:34Z")

</div>

Hi forum,

I am learning to use [@flowfuse/node-red-dashboard](https://flows.nodered.org/node/@flowfuse/node-red-dashboard).

I tried following these two tutorials:

- [UI Template Examples | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/user/template-examples.html#world-map)
- [Mapping location data within Node-RED Dashboard 2.0. • FlowFuse](https://flowfuse.com/blog/2024/05/mapping-location-on-dashboard-2/)

but always hit the same problem, i.e when I load [http://localhost:1880/dashboard/worldmap](http://localhost:1880/dashboard/worldmap) the browser would not display the map and instead displayed "too many redirects". And I see this in the log:

```auto
18 May 22:06:18 - [info] [ui-base:Dashboard] Disconnected DsCeiEivjeDI5LcGAAAD due to transport close

```

If I removed all dashboard nodes including the config nodes, redeploy the flow and load [http://localhost:1880/worldmap](http://localhost:1880/worldmap), it display the map.

Can you help me with what I should check/fix to make the tutorial works?  
Following direction in this thread [Problem node-red-contrib-web-worldmap](https://discourse.nodered.org/t/problem-node-red-contrib-web-worldmap/51168) did not help.

This is my node-red log on first start:

```auto
$ ./node_modules/.bin/node-red -u .
18 May 12:07:51 - [info] 

Welcome to Node-RED
===================

18 May 12:07:51 - [info] Node-RED version: v4.0.9
18 May 12:07:51 - [info] Node.js version: v22.15.0
18 May 12:07:51 - [info] Linux 6.12.25-amd64 x64 LE
18 May 12:07:52 - [info] Loading palette nodes
18 May 12:07:52 - [info] FlowFuse Assistant Plugin is disabled
18 May 12:07:52 - [debug] logger Node logging turning on logging next 111 log points
18 May 12:07:52 - [info] logger Node Copyright 2020 Jaroslav Peter Prib
18 May 12:07:52 - [debug] logger Node test active
18 May 12:07:54 - [info] Worldmap version: 5.1.5
18 May 12:07:54 - [info] Dashboard version 3.6.5 started at /ui
18 May 12:07:54 - [info] Settings file : /home/fhy/Workspace/node-red/settings.js
18 May 12:07:54 - [info] Context store : 'default' [module=memory]
18 May 12:07:54 - [info] User directory : /home/fhy/Workspace/node-red
18 May 12:07:54 - [info] Projects directory: /home/fhy/Workspace/node-red/projects
18 May 12:07:54 - [info] Server now running at http://127.0.0.1:1880/
18 May 12:07:54 - [info] Active project : dummy
18 May 12:07:54 - [info] Flows file : /home/fhy/Workspace/node-red/projects/dummy/flows.json
18 May 12:07:54 - [warn] Using unencrypted credentials
18 May 12:07:54 - [info] +-----------------------------------------------------
18 May 12:07:54 - [info] | uibuilder v7.2.0 initialised 🌐
18 May 12:07:54 - [info] | root folder: /home/fhy/Workspace/node-red/projects/dummy/uibuilder
18 May 12:07:54 - [info] | Using Node-RED's webserver at:
18 May 12:07:54 - [info] | http://0.0.0.0:1880/
18 May 12:07:54 - [info] | Installed packages:
18 May 12:07:54 - [info] | vue
18 May 12:07:54 - [info] +-----------------------------------------------------
18 May 12:07:54 - [info] Starting flows
18 May 12:07:54 - [info] [ui-base:Dashboard] Node-RED Dashboard 2.0 (v1.24.0) started at /dashboard
18 May 12:07:54 - [info] [ui-base:Dashboard] Created socket.io server bound to Node-RED port at path /dashboard/socket.io
18 May 12:07:54 - [info] [worldmap:b4f2e2dabd5b8220] started at /worldmap
18 May 12:07:54 - [info] Started flows

```

Thank you.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 May 2025 14:42 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/2 "2025-05-18T14:42:45Z")

</div>

This is a regression that has been introduced in the current version of the dashboard.

> <https://github.com/FlowFuse/node-red-dashboard/issues/1708>
>
> \### Current Behavior
> 
> See: https://discourse.nodered.org/t/flowfuse-dashboard-2-…0-issue-err-too-many-redirects/97107/14
> 
> Was introduced in #1663 
> 
> We should be scoping the redirect checks to Dashboard routes only. Currently worldmap, ui builder, etc are getting caught up in our routing.
> 
> \### Expected Behavior
> 
> \_No response\_
> 
> \### Steps To Reproduce
> 
> \_No response\_
> 
> \### Environment
> 
> \- Dashboard version:
> \- Node-RED version:
> \- Node.js version:
> \- npm version:
> \- Platform/OS:
> \- Browser:
> 
> 
> \### Have you provided an initial effort estimate for this issue?
> 
> I have provided an initial effort estimate

I believe a fix is due very soon, in the meantime you could drop back to an earlier version

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [18 May 2025 15:09 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/3 "2025-05-18T15:09:54Z")

</div>

Yep, should have release reviewed and published tomorrow

---

<div class="post-metadata">

**Author:** ![iot.regenesis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iot.regenesis/32/100846_2.png) [@iot.regenesis](https://discourse.nodered.org/u/iot.regenesis)\
**Post date:** [18 May 2025 15:17 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/4 "2025-05-18T15:17:09Z")

</div>

Thank you Colin for the clarification.

---

<div class="post-metadata">

**Author:** ![iot.regenesis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iot.regenesis/32/100846_2.png) [@iot.regenesis](https://discourse.nodered.org/u/iot.regenesis)\
**Post date:** [18 May 2025 15:17 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/5 "2025-05-18T15:17:45Z")

</div>

Looking forward to trying the new release.

---

<div class="post-metadata">

**Author:** ![iot.regenesis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iot.regenesis/32/100846_2.png) [@iot.regenesis](https://discourse.nodered.org/u/iot.regenesis)\
**Post date:** [23 May 2025 16:05 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/6 "2025-05-23T16:05:33Z")

</div>

I uninstalled @flowfuse/node-red-dashboard@1.24.0  
and installed @flowfuse/node-red-dashboard@1.23.0

Now worldmap can be displayed inside @flowfuse/node-red-dashboard-2-ui-iframe.

Thank you.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 May 2025 18:29 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/7 "2025-05-23T18:29:25Z")

</div>

Nudge @joepavitt 😉

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [23 May 2025 19:19 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/8 "2025-05-23T19:19:24Z")

</div>

Sorry, we've been away this week and I'm out of office until Wednesday. I may get a chance on Sundsy to do the release.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [26 May 2025 10:43 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/9 "2025-05-26T10:43:34Z")

</div>

`1.24.1` is now released with a fix in for this

---

<div class="post-metadata">

**Author:** ![Skayz](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Skayz](https://discourse.nodered.org/u/Skayz)\
**Post date:** [29 May 2025 10:32 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/10 "2025-05-29T10:32:12Z")

</div>

Hello,

I can view the worldmap by entering "localhost:1880/worldmap/" in the address bar of a new browser tab.

However, when I use the Dashboard 2.0 - i-frame node and enter "localhost:1880/worldmap/" in the URL field, the dashboard worldmap shows the error: "localhost redirected you too many times".

Versions:  
Worldmap : 5.1.6  
@flowfuse/node-red-dashboard : 1.24.1  
Node-Red : 4.0.9

How can We fix this situation?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 May 2025 10:52 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/11 "2025-05-29T10:52:58Z")

</div>

Did you recently update dashboard to v1.24.1? did you restart node-red and refresh the dashboard browser?

---

<div class="post-metadata">

**Author:** ![Skayz](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Skayz](https://discourse.nodered.org/u/Skayz)\
**Post date:** [29 May 2025 11:13 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/12 "2025-05-29T11:13:56Z")

</div>

Hello Steve-Mcl,  
I updated the Dashboard module. The current version is v1.24.1.  
I also restarted the browser and Node-RED.  
I just noticed a different situation:  
When I open the dashboard in Google Chrome , I get the error:  
"localhost redirected you too many times."  
However, when I open the dashboard in Microsoft Edge, the worldmap displays successfully.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 May 2025 11:15 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/13 "2025-05-29T11:15:46Z")

</div>

thats sounds like a cache issue. try clearing the other browsers cache for the dashboard.

In dev tools (`F12`)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c88c0b89c4a5574c45a5372f8e63f9aaacd9bc57.png)

---

<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:** [12 June 2025 11:16 UTC](https://discourse.nodered.org/t/worldmap-dashboard-2-0-iframe-example-error-too-many-redirects/97123/14 "2025-06-12T11:16:43Z")

</div>

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