0

When I create a cpUrl like that:

UrlHelper::cpUrl($this->entry->cpEditUrl)

I get something like that:

https://hegi.test/admin/entries/article/7707-test

But that don't work inside of the browser. I get an 404 Error:

HTTP 404 – Not Found – yii\web\NotFoundHttpException Entry not found

Do I miss something?

Thanks in advance. Michael

2
  • 1
    Is it a draft entry? I think this is how Craft is doing it? – RitterKnight Jan 26 at 18:39
  • It is not a draft entry. I have not a draftId or a revisionId on the Entry. But why. I just saved it. And this user has no permissions to publish an entry - so it has to be a draft. – Slowwie Jan 27 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.