Skip to content

Got homepage instead of 404 page when using urlSegments #366

@Lazerproof

Description

@Lazerproof

Short description of the issue

Accessing link with adding any special character to the end of URL segment render a home page or causes "Bad request" instead of render 404 page.

Expected behavior

Get 404 page

Actual behavior

With links like
site.com/current-page/real-page/not-real-page)
site.com/current-page/real-page/not-real-page@
Home page is rendered
site.com/current-page/real-page/not-real-page%
I get "Bad request! Your browser (or proxy) sent a request that this server could not understand."

Optional: Screenshots/Links that demonstrate the issue

https://processwire.com/talk/topic/17116-got-home-page-instead-of-404-when-using-urlsegments/

Steps to reproduce the issue

  1. Enable URL segments for some template
  2. Try to access any URL with adding special char to the end of URL.

Setup/Environment

  • ProcessWire version: 3.0.74 and 3.0.73

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions