Zeronet: Semantic URLs

Created on 23 Oct 2017  路  3Comments  路  Source: HelloZeroNet/ZeroNet

There is no way I can have a semantic URLs in the current state of ZeroNet, am I right? Except of storing each post in a separate file, which is not feasible for dynamic sites.
I want links look like this http://127.0.0.1:43110/example.bit/post/121 instead of http://127.0.0.1:43110/example.bit/?Post:121
It will be good if it's possible to define a regex for requests which must be directed to index.html, where they will processed by JavaScript, instead of direct file access.

Most helpful comment

Currently, you can make it look like what you want, just with an added ?, so: http://127.0.0.1:43110/example.bit/?/post/121. This is how my ZeroFrame Router works. I don't really see a problem with using this method, and to me it's less complicated because everything is right there is javascript, no need to mess with regex's in the content.json file or some other file, etc.

All 3 comments

Currently, you can make it look like what you want, just with an added ?, so: http://127.0.0.1:43110/example.bit/?/post/121. This is how my ZeroFrame Router works. I don't really see a problem with using this method, and to me it's less complicated because everything is right there is javascript, no need to mess with regex's in the content.json file or some other file, etc.

Please see issue #1548 and associated PR #1549

@HelloZeroNet @grez911 Can this issue be closed? We have #1548 now that basically replaces this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

unsystemizer picture unsystemizer  路  4Comments

cxgreat2014 picture cxgreat2014  路  4Comments

yurivict picture yurivict  路  4Comments

yurkobb picture yurkobb  路  3Comments

iShift picture iShift  路  3Comments