MostTornBrain / pf2e-md-exporter

Foundry VTT markdown exporter optimized for PF2E content.
MIT License
8 stars 3 forks source link

"Character Building / Classes" notes contain broken links. #4

Closed MostTornBrain closed 5 months ago

MostTornBrain commented 5 months ago

If you export the classes in the PF2E compendium under "Character Building/Classes", each class will contain a brief description of the class, along with a link to the longer journal entry that describes the class in detail. However that link is broken. It's still in "compendium UUID" format rather than linking to the exported note layout with human readable names.

MostTornBrain commented 5 months ago

The problem is the UUID it attempts to resolve via a call to fromUuidSync() fails because the data can not be retrieved synchronously. (It will only be available via an async call to fromUuid().) Unfortunately, this is triggered by a handlebar call fetching data, and handlebar calls must be synchronous.

I'm currently looking at whether some other API might give me the information I need - really I just need to know where the note is stored in the compendium so I can create a markdown link to its name.

NOTE: this problem with the broken links only occurs if you are using the option to export the notes with human readable file names (which is the default).

MostTornBrain commented 5 months ago

As of update 0.7.0 this is fixed.