Skip to content

Commit f21a1fc

Browse files
committed
update redirect check to use startsWith instead of includes
1 parent b21cbf8 commit f21a1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/cloudfrontLambdaAssociations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function getSDKRedirect(uri: string): string | undefined {
264264

265265
// redirect /resources/* to /events/* following workshop+event URL rename to capture orphaned links
266266
function getResourcesRedirect(uri: string): string | undefined {
267-
if (uri.includes("/resources/")) {
267+
if (uri.startsWith("/resources/")) {
268268
return uri.replace("/resources/", "/events/");
269269
}
270270

0 commit comments

Comments
 (0)