Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

respond with 404 page while keeping original URL

$
0
0
Hi,

we have a page for some resource mounted at /resource/<id>
When users enter an invalid ID, we want to render a 404 page.
However, we would like the resulting page not have the original url
with the invalid id (but http status 404).

Is there any obvious easy way to achieve this? Because it seems the
general way in wicket tutorials on 404 pages seem to rely on
redirecting to a mounted 404 resource, which means the browser will
not display the original invalid URL.

cheers,
Thibault

Viewing all articles
Browse latest Browse all 5648

Trending Articles