Popup improvement

* user templates : search/replace /media/something by getMedia URL even if not store in attribute data
* debug missing double quotes when using /media/ in the template