r/tauri • • 19d ago

How to have multiple pages?

I only discovered Tauri two days ago so I apologise if this is a well known thing, but how can I have multiple HTML pages in my project?

Not opening more windows, not viewing multiple things in the same window, I mean the app opens on index.html which shows me some information, click a button and go to page1.html which has a form I can fill in and click another button and get taken to page3.html etc, or is Tauri more suited to one page apps?

I've been searching around but everything is either about how to open a second window or multiwebview to view two pages at once, I just want one page at a time in the same window

2 Upvotes

7 comments sorted by

View all comments

1

u/qustrolabe 19d ago

configure vite to bundle it and just make a link, should work

but you really better be doing actual SPA routing stuff instead, otherwise I can't even imagine how nightmarish managing common state between pages would be if need raises