mongorilla icon indicating copy to clipboard operation
mongorilla copied to clipboard

Mongorilla Preview Page is not working

Open muni2explore opened this issue 7 years ago • 1 comments

Preview link is not working for other Schema except user...

Getting following error...

Cannot GET /configsettings/esrtgsr

I have defined previewUrl in the Schema file...

routes/app/generic.js file redirecting

var url = collection.previewUrl.replace(/\$\{([^\}]*)\}/g, function (match, path) { return data.get(path); }); res.redirect(301, url);

muni2explore avatar May 12 '17 11:05 muni2explore

hi @muni2explore, you may have added a local URL, so you would have to either define a router for that path on the Mongorilla's Express server, or change it to a full URL (starting with http:// or https://).

You can find examples of the previewUrl setting here: https://github.com/gerardobort/mongorilla/wiki/Defining-Content-Types

If that's not helpful, please copy here your previewUrl in order to understand the problem better.

Thanks,

gerardobort avatar May 12 '17 14:05 gerardobort