head | gist | hash | qm |
---|---|---|---|
6b79faa |
5d06c7e30abe8b4e1c1eb31edb34affd |
QmSNKruojmACYPRwT3Fx8N5yovZmxBGuWWgrK3uiaD1Z3v |
Qmb4Ga8fW5a7X8TUVuGegQFYeFnEkUDMSvLX4U35bv4Goz |
This gist is piece of javascript to redirecting a web page using the fragment passed with the url location.
The fragment can be a hash or an path on IPFS.
This code can be used as a soft linking mechanism
example: /ipfs/QmSkGW3bkHttcSYZ8U2LdJYcPt3w4GCF2M2ok3mT4oc837/README.html
see how it works on the demo page at: http://127.0.0.1:8080/ipfs/Qmb4Ga8fW5a7X8TUVuGegQFYeFnEkUDMSvLX4U35bv4Goz