Body: <p>I'm not sure exactly what has changed here. All links are directing to &quot;site.test/admin/site.test/blog/{slug}&quot;, when clicking on the link from the entry page. Before they would be &quot;site.test/blog/{slug}&quot;. All links across the entire site are doing this. Is there a new variable or setting I need to change?</p>
  <p>I have the sites 'Base URL' set to an .env variable, $PRIMARY_SITE_URL which I then have set as 'site.test'</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-17T13:25:06.177Z
Comments.Text: Do you have `http://` or `https://` in front of the URL in your `.env`?
Comments.UserDisplayName: Oli
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-17T16:14:18.563Z
Comments.Text: No. I unticked 'this site has a base url' and everything went back to working as expected. I also saw somewhere that craft now expects a 'DEFAULT_SITE_URL' in your .env file, so have added that variable into my file now as http://site.test and everything seems to be fine. Thank you for helping debug
Comments.UserDisplayName: Thurc1996
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-18T20:20:58.117Z
Comments.Text: @Thurc1996 Can you add what worked for you as an official solution in case it can help someone in the future?
Comments.UserDisplayName: Brad Bell
Tags: <url><error>
Title: All URLs changed path after upgrading to 3.6?
ThreadText: # All URLs changed path after upgrading to 3.6?
  
  (Asked by: username_0 on 2021-02-17)
  
  I'm not sure exactly what has changed here. All links are directing to "site.test/admin/site.test/blog/{slug}", when clicking on the link from the entry page. Before they would be "site.test/blog/{slug}". All links across the entire site are doing this. Is there a new variable or setting I need to change?
  
  I have the sites 'Base URL' set to an .env variable, $PRIMARY\_SITE\_URL which I then have set as 'site.test'
  
  **Tags:** url, error
  
  > **Comments:**
  > **username_1**: Do you have `http://` or `https://` in front of the URL in your `.env`?  
  > **username_0**: No. I unticked 'this site has a base url' and everything went back to working as expected. I also saw somewhere that craft now expects a 'DEFAULT_SITE_URL' in your .env file, so have added that variable into my file now as http://site.test and everything seems to be fine. Thank you for helping debug  
  > **username_2**: @username_0 Can you add what worked for you as an official solution in case it can help someone in the future?  
  
  ---
  
  ## 0 answers
  
  