From 8c357ac4e58e95fef9c3b43807a2c958e52b947f Mon Sep 17 00:00:00 2001 From: Sarvesh Desai <55236642+sarveshdesai@users.noreply.github.com> Date: Wed, 5 Nov 2025 13:52:30 -0500 Subject: [PATCH] refactor crosslink_redirect to align with new docs website --- .changelog/documentation-aws-cpp-sdk-core.json | 6 ++++++ docs/doxygen/static/crosslink_redirect.html | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changelog/documentation-aws-cpp-sdk-core.json diff --git a/.changelog/documentation-aws-cpp-sdk-core.json b/.changelog/documentation-aws-cpp-sdk-core.json new file mode 100644 index 000000000000..8bad47aee20e --- /dev/null +++ b/.changelog/documentation-aws-cpp-sdk-core.json @@ -0,0 +1,6 @@ +{ + "type": "documentation", + "category": "aws-cpp-sdk-core", + "contributor": "sarveshdesai", + "description": "fix redirect in docs website" +} diff --git a/docs/doxygen/static/crosslink_redirect.html b/docs/doxygen/static/crosslink_redirect.html index c0c3cc3f164d..e074deb4a5e6 100644 --- a/docs/doxygen/static/crosslink_redirect.html +++ b/docs/doxygen/static/crosslink_redirect.html @@ -8,7 +8,7 @@ var uidToServiceName = JSON.parse(uidServiceData); - var baseUri = "LATEST/"; + var defaultUrl = "root/html/index.html"; function getQueryStringParameter(name, url) { @@ -46,7 +46,7 @@ var serviceName = uidToServiceName[uid]; if(serviceName == null) { - return baseUri; + return defaultUrl; } var dirtyName = "class_aws_1_1_"; @@ -69,7 +69,7 @@ } dirtyName += ".html"; - return baseUri + "aws-cpp-sdk-" + serviceName.toLowerCase() + "/html/" + escapeCharacters(dirtyName); + return "aws-cpp-sdk-" + serviceName.toLowerCase() + "/html/" + escapeCharacters(dirtyName); } function checkResourceExists(url) { @@ -101,7 +101,7 @@ window.location.href = secondAttempt; } else { - window.location.href = baseUri + "index.html"; + window.location.href = defaultUrl; } }