Text Markdown visualization fails when copying to other spaces

Hello,

I have a Dashboard with a text visualization that I use to jump from that Dashboard to another.
This is the markdown of the visualization:

[Nginx logs overview](#/dashboard/39ad9660-3e40-11ed-ab98-8766b05540f5) | [Nginx access and error logs](#/dashboard/a2038fa0-3ef7-11ed-ab98-8766b05540f5)

And this is the result:

The problem comes when I copy the Dashboard saved object and its related objects to a different space. The Dashboard shows all the visualizations as expected except for the text visualization. When I click over one of the two options it throws the following error:
Screenshot 2022-11-01 at 15.03.26
And this happens cause the dashboard object id changes to a new one like in this example:

{
  "id": "87847c97-89cd-44e3-9ae2-6aa2f358d7db",
  "type": "dashboard",
  "namespaces": [
    "moar"
  ],
  "originId": "39ad9660-3e40-11ed-ab98-8766b05540f5",

How could I avoid this issue when copying text visualizations to different spaces?

Thanks in advance

Mario

Hi @mmartinez , I am not able to reproduce this behavior.

You mentioned "When I click over one of the two options it throws the following error", which two options are you referring to?

It does sound like a bug, so it might be worth opening an issue with all the steps on how to reproduce in a fresh environment.

Hi @JLeysens,

Those are the two options I'm referring to:

[Nginx logs overview](#/dashboard/39ad9660-3e40-11ed-ab98-8766b05540f5) | [Nginx access and error logs](#/dashboard/a2038fa0-3ef7-11ed-ab98-8766b05540f5)

I know why it fails but I don't know how to solve it.
When I copy the Dashboards to other spaces, the object id pointing to that Dashboard changes and that's why it throws the error, because it cannot find the dashboard.

Use case:
The object id of the Nginx logs overview dashboard is 39ad9660-3e40-11ed-ab98-8766b05540f5 and when I copy it to another space the id changes to 87847c97-89cd-44e3-9ae2-6aa2f358d7db.

{
  "id": "87847c97-89cd-44e3-9ae2-6aa2f358d7db",
  "type": "dashboard",
  "namespaces": [
    "moar"
  ],
  "originId": "39ad9660-3e40-11ed-ab98-8766b05540f5",

Let me know if you think I should open an issue. Thanks

Regards

Mario