<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>

CC BY-SA 4.0
2021-02-17T13:25:06.177Z
Do you have `http://` or `https://` in front of the URL in your `.env`?
Oli
CC BY-SA 4.0
2021-02-17T16:14:18.563Z
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
Thurc1996
CC BY-SA 4.0
2021-02-18T20:20:58.117Z
@Thurc1996 Can you add what worked for you as an official solution in case it can help someone in the future?
Brad Bell
<url><error>
All URLs changed path after upgrading to 3.6?
# 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

