We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb72418 commit 7d0e817Copy full SHA for 7d0e817
source/assets/js/404.js
@@ -56,3 +56,9 @@ function buildResult(result) {
56
$result.append($('<a/>').text(result.title).attr('href', result.url));
57
return $result;
58
}
59
+
60
+// Redirect links to the old copy of the site (ie. https://developer.rebble.io/developer.pebble.com/) to strip the
61
+// subpath
62
+if (location.pathname.startsWith('/developer.pebble.com/')) {
63
+ location.pathname = location.pathname.replace('/developer.pebble.com/', '/')
64
+}
0 commit comments