<p>I've deployed my website for a second time but there is a problem now..</p>
<p>When I navigate through my page, everything works fine apart from one page that fetches a graphQL query, but this returns an error 400.</p>
<p>The main part is when I go to site.com/admin
I get redirected to site.com/web/admin but there is nothing on that page..</p>
<p>And every url in the dashboard has that /web/ extension in the navigation path..</p>
<p>Any ideas how to fix this??</p>

CC BY-SA 4.0
2023-08-17T11:01:46.063Z
Did you use a symlink to set the root to /web? In case you didn't you should symlink the served directory to /web
Kenneth
CC BY-SA 4.0
2023-08-19T15:07:49.513Z
@Kenneth, no idea what I did but I've got it working. Thanks for your answer!
Stef Verniers
<craft4>
CP routes are suddenly prefixed by /web/ directory
# CP routes are suddenly prefixed by /web/ directory

(Asked by: username_0 on 2023-08-16)

I've deployed my website for a second time but there is a problem now..

When I navigate through my page, everything works fine apart from one page that fetches a graphQL query, but this returns an error 400.

The main part is when I go to site.com/admin
I get redirected to site.com/web/admin but there is nothing on that page..

And every url in the dashboard has that /web/ extension in the navigation path..

Any ideas how to fix this??

**Tags:** craft4

> **Comments:**
> **username_1**: Did you use a symlink to set the root to /web? In case you didn't you should symlink the served directory to /web  
> **username_0**: @username_1, no idea what I did but I've got it working. Thanks for your answer!  

---

## 0 answers

