How can I create dynamic links to pages

And Cloudflare. Cloudflare works great.

Blazor can use WebAssembly. Blazor however uses .Net and this question is about PHP. I do not know about use of WebAssembly in a PHP application but it might be too much of a bleeding edge for here.

A disadvantage of a SPA might be a large initial download of the site, correct?