@inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager

<form class="row" @onsubmit="AddrRedirect" @onsubmit:preventDefault="true">
    <input id="greet-input" placeholder="3-character Station Code" @bind="Code" />
    <button type="submit">Submit</button>
</form>

@code
{
    private string? Code { get; set; }

    private void AddrRedirect()
    {
        var address = $"https://dixielandsoftware.net/cgi-bin/solari_relay.pl?data={Code}";

        NavigationManager.NavigateTo(address);
    }
}