Closed mbanting closed 10 years ago
@hivearts said
Hello,
Great job!
I have tried and its working wonderful but when i want to use link resolver nothing happen.
.use(prismic({ "url": "xxxxxxxxxxxxxxxxx", "linkResolver": function(doc) { return '/news/' + doc.slug; } } ))
Also i have tried your code from test folder.
"linkResolver": function (ctx, doc) { if (doc.isBroken) return false; return '/' + doc.type + '/' + doc.slug + (ctx.maybeRef ? '?ref=' + ctx.maybeRef : ''); }
And still nothing happen..
It builds always by default linkresolver funcion.
Fixed in 0.4.1.
@hivearts said
Hello,
Great job!
I have tried and its working wonderful but when i want to use link resolver nothing happen.
Also i have tried your code from test folder.
And still nothing happen..
It builds always by default linkresolver funcion.