p');
                    const nextSearch = searchParams.size > 0 ? `?${searchParams.toString()}` : '';
                    const nextURL = `${window.location.pathname}${nextSearch}${window.location.hash}`;
                    history.pushState(history.state, "", nextURL);
                }

                previousApp = null;
            });
        }

        for (const appModalLink of appModalLinks) {
            appModalLink.addEventListener("click", (event) => {
                event.preventDefault();
