Skip to content

2.1.1 — New 404 page

Choose a tag to compare

@FernandoEbert FernandoEbert released this 11 Nov 03:48
e1f2e78

New 404 page

The Valet 404 page was a plain 404 - Not Found shown for three different situations. It now has a redesigned layout (inline CSS, no external assets) and a message that explains why the request failed (#5):

  • Site not found: the host is not linked or parked. Shows valet link {name} / valet park instructions.
  • No driver matched: the site exists but no driver handles it. Shows the resolved site path and tips: check valet links, the entry point, or add a LocalValetDriver.php / ~/.config/valet/Drivers driver.
  • Page not found: a regular "Page not found" for the requested URL.

Host, URI and site path are escaped, and server.php stays compatible with older PHP versions used by isolated sites.

Other changes

  • Pre-commit hooks for code style and tests (#6)
  • Unit tests for 404 reason normalization (#5)

Upgrading

composer global update fernandoebert/valet-linux-plus
valet install