Skip to content

Commit e6e3638

Browse files
committed
Adjust url manipulation for prod site
1 parent 606f3f8 commit e6e3638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/404.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const NotFoundPage = ({ data, location }) => {
1414

1515
let message
1616
if (isLookingForNewExtensions) {
17-
const date = location.pathname.replaceAll("/new-extensions/", "").split("/").reverse().join(" ")
17+
const date = location.pathname.replaceAll("/extensions/new-extensions", "").replaceAll("/new-extensions/", "").split("/").reverse().join(" ")
1818
const explanation = isPast ? `No Quarkus extensions were released in ${date}.` : isFuture ? `The Quarkus extensions for ${date} haven't been created yet.` : `There are no Quarkus extensions for ${date}.`
1919
message = "Quarkus contributors can do a lot of nifty things, but time travel isn't one of them. " + explanation
2020
} else {

0 commit comments

Comments
 (0)