mongorilla
mongorilla copied to clipboard
Mongorilla Preview Page is not working
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);
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,