Skip to content

E0701: Two pages on one path ​

Two page types end up at the same path and method. A page's path is its folder's and the kebab-case of its name (Index none), so ResetPassword and a reset-password/ folder's Index are both /reset-password; a page and a method handler of another page on its path collide the same way. Reported at the second page's type, naming the first.

Wrong ​

text
pages/account/
  reset_password.go          type ResetPassword — /account/reset-password
  reset-password/index.go    type Index         — /account/reset-password
text
pages/account/
  reset-password/index.go    type Index — /account/reset-password

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.