openvibers/openvibe.live Commits

Pastes hand-off covers the /pastes list too

OP OpenVibers committed 18 Sept 2026 · 89de36f212 · 1 file, +3 −0


Changes

ddiff --git a/public/js/app.js b/public/js/app.js
iindex 6854f630..583a0919 100644
---- a/public/js/app.js
++++ b/public/js/app.js
@@@ -1144,6 +1144,9 @@ function routeFromURL() {
} else if (segments[0] === 'privacy') {
window.location.replace('/privacy');
return;
++ } else if (segments[0] === 'pastes' && !segments[1] && document.querySelector('meta[name="ov-pastes-base"]')) {
++ location.replace(`${document.querySelector('meta[name="ov-pastes-base"]').content}/pastes${location.search}`);
++ return;
} else if (segments[0] === 'p' && segments[1] && document.querySelector('meta[name="ov-pastes-base"]')) {
// Pastes live on openvibe.community now — hand the browser over (same slug, same URL shape).
location.replace(`${document.querySelector('meta[name="ov-pastes-base"]').content}/p/${encodeURIComponent(segments[1])}${location.search}`);