Changing Record on Same Page

I have a setup where different files are cross referenced to each other. So File A can be listed as a cross reference for File B. I want to be able to click a button when I'm in file A and it loads the same page but now with file B. It was working previously with the below code, but it's not working any longer. So when I click the button to run these lines, the url appears correctly, but the File it should be showing does not, it stays on the current file. If I hit f5, then it loads the correct file. Do I have to do something else to the page to do a reload/refresh through code?

UriHelper.NavigateTo($"edit-claim/{strXRefClaimID}");
Reload();

The NavigateTo method does not navigate if the URL remains the same. You can try using the second parameter to force reload:

UriHelper.NavigateTo($"edit-claim/{strXRefClaimID}", /* force reload */ true);
1 Like

Worked beautifully. Thanks.