Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@
layout: default
---

<script>
(function () {
const migratedRepos = {
"tps-location-sdk-native": "https://qualcomm.github.io/tps-location-sdk-native",
"tps-location-sdk-android": "https://qualcomm.github.io/tps-location-sdk-android",
"aimet-pages": "https://qualcomm.github.io/aimet-pages"
};

const path = window.location.pathname;
const search = window.location.search;
const hash = window.location.hash;

const pathParts = path.split("/").filter(Boolean);
const repoName = pathParts[0];

if (repoName && Object.prototype.hasOwnProperty.call(migratedRepos, repoName)) {
const remainingPath = path.substring(("/" + repoName).length);
const targetBaseUrl = migratedRepos[repoName].replace(/\/$/, "");
const targetUrl = targetBaseUrl + remainingPath + search + hash;

window.location.replace(targetUrl);
}
})();
</script>

<style type="text/css" media="screen">
.container {
margin: 10px auto;
Expand Down
Loading