Body: <p>When I create a cpUrl like that:</p>
  <p><code>UrlHelper::cpUrl($this-&gt;entry-&gt;cpEditUrl)</code></p>
  <p>I get something like that:</p>
  <p><code>https://hegi.test/admin/entries/article/7707-test</code></p>
  <p>But that don't work inside of the browser.
  I get an 404 Error:</p>
  <p><code>HTTP 404 – Not Found – yii\web\NotFoundHttpException Entry not found</code></p>
  <p>Do I miss something?</p>
  <p>Thanks in advance.
  Michael</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-26T18:39:00.153Z
Comments.Text: Is it a draft entry? I think [this](https://github.com/craftcms/cms/blob/cefde5ca50bd99a2d13b260bbb6f616e54ec5596/src/helpers/Cp.php#L333) is how Craft is doing it?
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-27T09:17:39.147Z
Comments.Text: 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.
Comments.UserDisplayName: Slowwie
Tags: <craft3><control-panel><url>
Title: Url Helper does not create a usable url
ThreadText: # Url Helper does not create a usable url
  
  (Asked by: username_0 on 2021-01-26)
  
  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
  
  **Tags:** craft3, control-panel, url
  
  > **Comments:**
  > **username_1**: Is it a draft entry? I think [this](https://github.com/craftcms/cms/blob/cefde5ca50bd99a2d13b260bbb6f616e54ec5596/src/helpers/Cp.php#L333) is how Craft is doing it?  
  > **username_0**: 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.  
  
  ---
  
  ## 0 answers
  
  