New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 errors within wp-admin when there is no trailing slash #171

Closed
kkoppenhaver opened this Issue Dec 9, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@kkoppenhaver
Copy link

kkoppenhaver commented Dec 9, 2018

Issue Overview

After spinning up Tide locally and navigating to /wp-admin, URLs for any links in the admin sidebar result in 404 errors.

Steps to Reproduce (for bugs)

  1. Create a local Tide install
  2. Navigate to http://tide.local/wp-admin (note the lack of trailing slash)
  3. Click on a sidebar link
  4. See the resulting 404 page

Expected Behavior

Links within wp-admin should not 404.

Solution

The solution is to ensure that when you navigate to wp-admin, you provide a trailing slash: http://tide.local/wp-admin/.

Options that we've discussed to fix this issue involve forcing nginx to add the trailing slash if not present, or hijacking the login process with PHP to add the trailing slash (as NGINX has proven difficult to wrangle).

Todos

  • Tests
  • Documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment