Skip to content

Commit 84d618b

Browse files
authored
Set no-path redirect to ACM website (#363)
1 parent ecd38da commit 84d618b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/linkryEdgeFunction/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
]
1010
DYNAMODB_TABLE = "infra-core-api-linkry"
1111
FALLBACK_URL = os.environ.get("FALLBACK_URL", "https://acm.illinois.edu/404")
12-
LINKRY_HOME_URL = os.environ.get(
13-
"LINKRY_HOME_URL", "https://core.acm.illinois.edu/linkry"
14-
)
12+
DEFAULT_URL = os.environ.get("DEFAULT_URL", "https://www.acm.illinois.edu")
1513
CACHE_TTL = "30" # seconds to hold response in PoP
1614

1715

@@ -51,7 +49,7 @@ def handler(event, context):
5149
"status": "301",
5250
"statusDescription": "Moved Permanently",
5351
"headers": {
54-
"location": [{"key": "Location", "value": LINKRY_HOME_URL}],
52+
"location": [{"key": "Location", "value": DEFAULT_URL}],
5553
"cache-control": [
5654
{"key": "Cache-Control", "value": f"public, max-age={CACHE_TTL}"}
5755
],

0 commit comments

Comments
 (0)