gramps-project / gramps-web

Frontend for Gramps Web
https://www.grampsweb.org
GNU Affero General Public License v3.0
336 stars 48 forks source link

Error when a link to a MediaObject is added to a notation for a Blog #413

Closed Jimbosss closed 3 months ago

Jimbosss commented 3 months ago

When I create a Blog post in Gramps by using a Source with a Label blog everything works fine in Grampsweb. After I created a Link to a Wikipedia page, this also works in Grampsweb. ( is it possible to open an external link to a new Tab instead of the excisting one ? )

But after I create a link to a MediaObject (JPG Image) in that same Blogpost, I see nothing when I click on that link. Looking at the Debug Console in the browser, I see the following error:

Uncaught (in promise) TypeError: e.media_list is undefined 7f4e2c83.js:8394:259

I am using

Gramps 5.2.0 Gramps Web API 2.1.0 Gramps Web Frontend 24.3.1 locale: en multi-tree: false task queue: true

DavidMStraub commented 3 months ago

Ok this is a bug; can you please check the following pages individually and tell me which ones load (when you reload them with F5) and which ones error:

Thanks!

Jimbosss commented 3 months ago

http://localhost/ [Fine] Shows latest blogpost http://localhost/blog [Fine] http://localhost/blog/S0007 [Fine] http://localhost/source/S0007 [Fine] http://localhost/note/N0010 [Fine]

http://localhost/media/O0918 [Error]