Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Routes not working when visiting a url directly #111

Open
KKaldis opened this issue Oct 2, 2023 · 3 comments
Open

Routes not working when visiting a url directly #111

KKaldis opened this issue Oct 2, 2023 · 3 comments
Labels
blocked this issue is blocked by something else

Comments

@KKaldis
Copy link

KKaldis commented Oct 2, 2023

example
https://ator-dashboard.ar-io.dev/distribution
fffff

@KKaldis KKaldis changed the title routes not working when visiting a url directly Routes not working when visiting a url directly Oct 2, 2023
@KKaldis
Copy link
Author

KKaldis commented Oct 2, 2023

Investigate server rewrite paths.

if you are using Apatche add an .htaccess file

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.html [QSA,L]
</IfModule>

@jim-toth
Copy link
Contributor

jim-toth commented Oct 2, 2023

The dashboard is deployed as a permaweb app to Arweave itself. This means it's being served from whatever Arweave gateway you're currently getting it from (in the case of ator-dashboard.g8way.io you're getting it from the g8way.io gateway).

Arweave Gateways know to serve the dashboard as a website via a combination of a couple specifications:

  • Content-Type tags as metadata on the data transactions themselves (the individual files uploaded to Arweave)
  • Path Manifest Specification

The issue you're seeing is due to a current limitation of the Path Manifests Specification. The spec has been updated to include wildcards which would address this behavior - however it hasn't been fully implemented into production on Arweave Gateways.

Once Arweave Gateways have this updated Path Manifest functionality, this issue will essentially resolve itself. There is actually no workaround except to use hash-routing which is very ugly and temporary as the PR for this is almost complete pending final tests and PR approval 😄 👉 ar-io/ar-io-node#46

@jim-toth
Copy link
Contributor

jim-toth commented Oct 2, 2023

We'll keep this issue open as a tracker for this and close once Arweave Gateways have added wildcard support to resolve this.

@jim-toth jim-toth added the blocked this issue is blocked by something else label Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked this issue is blocked by something else
Projects
None yet
Development

No branches or pull requests

2 participants