It sounds like you're facing an issue where OnInitializedAsync is called twice when you directly hit the URL in the browser, but only once when navigating using a link. This is likely due to how the component is being instantiated in both scenarios, particularly with regard to how Blazor handles page navigation and re-renders.
In Blazor, when you navigate to a page via a URL directly (e.g., you refresh the page or type the URL directly into the browser), Blazor may re-initialize the component multiple times due to a few potential causes, such as component caching, re-rendering behavior, or how OnInitializedAsync is handled in different lifecycle phases.