Added a 'directory_url' field to the data pertaining to the page

I needed the directory where the page content was located to be able to link to images stored there,

Unsure if this is the optimal place to do it but it works well for me.