Custom 404 page
This commit is contained in:
1 parent
cc15ffa463
commit
cfdc7a7644
2 files changed
+15
-1
No files matched your search
@@ -58,7 +58,7 @@ public class Routes {
|
||||
.findForShortUrl(shortUrl);
|
||||
|
||||
if (longUrlOpt.isEmpty()) {
|
||||
res.status(404);
|
||||
res.redirect("404.html");
|
||||
return "";
|
||||
}
|
||||
urlRepository.addHit(shortUrl);
|
||||
|
||||
Reference in new issue
Block a user