curiousdannii / parchment

The Interactive Fiction web app
https://iplayif.com
MIT License
429 stars 60 forks source link

Publicly document how to use arbitrary URLs #120

Closed dfabulich closed 2 years ago

dfabulich commented 2 years ago

https://intfiction.org/t/parchment/54852

It's not very obvious to authors how to make iplayif.com work with arbitrary URLs.

I think the home page of https://iplayif.com/ could stand to have a form (or a link to a form?) where anyone could paste in an URL, and it would redirect the user to https://iplayif.com/?story=<url>.

zedlopez commented 2 years ago

demo iplayif url generator

dfabulich commented 2 years ago

Make it a PR! https://github.com/curiousdannii/parchment/blob/master/index.html ain't fancy.

curiousdannii commented 2 years ago

It's not exactly the same as what we'd want for Parchment, though it wouldn't be hard to change, so a PR would certainly be welcome. Otherwise I should be able to get to this soon.

I'm thinking the ideal would probably be to use the history API to update the URL but without actually causing the browser to navigate to a new page.

zedlopez commented 2 years ago

I'll make the change to rewrite the current navbar with the history API and submit a PR tomorrow or soon.

zedlopez commented 2 years ago

pull request