Serve anything, anywhere on your domain, with @anvil.server.route()

Hi @yahiakalabs, here is a mini example.

You can go to the root URL and start the app from the home page, you can put the page in the URL, and you can put the page and an option in the URL.

As you change forms or options inside a form, the URL and the tab title keep themselves updated.

There is no management of the browser history buttons (yet).

(I don’t like the way I worked around circular imports, but it’s a quick proof of concept, and for now it’s good enough.)

EDIT
I just fixed a bunch of bugs (who knew such a little app could have so many bugs!)

1 Like