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