Pithos: pithos.sia/app is the app's front door
pithos.sia itself is the website, so people had no obvious address to type for the app. /app (and /app/<page>) now opens Pithos in Theseus and through the website's Open my Pithos; it is no longer read as an S3 user named app.
This commit is contained in:
parent
aefa60d6b4
commit
7eb61b703a
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@
|
|||
var path = location.pathname.replace(/^\/bns\/pithos\.sia(?=\/|$)/, '').replace(/^\/pithos(?=\/|$)/, '') || '/';
|
||||
var sitePage = /^\/(index\.html|vs(\.html)?|docs(\/.*)?|llms\.txt)?$/.test(path);
|
||||
var appPath = sitePage ? '/' : path;
|
||||
var href = inTheseus ? (sitePage ? '/overview' : path) : 'http://127.0.0.1:47621/open?path=' + encodeURIComponent(appPath);
|
||||
var href = inTheseus ? (sitePage ? '/app' : path) : 'http://127.0.0.1:47621/open?path=' + encodeURIComponent(appPath);
|
||||
var links = document.querySelectorAll('[data-open-pithos]');
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
links[i].href = href;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue