Did a check of the water drawings and find there are two different builds for your RV.
Can you check the 7th digit of your serial number for 1 as the early build or 2 as late build. If not familiar with that point, it should be listed as the serial number (NOT VIN) on a label next to the driver's left side.
Best to get the right drawing first to cut confusion as hose water lines are not always the clearest thing to follow, so better to start with the right one if we can!
Looking closer, there seems no difference to matter on this question!
Main difference seems to be location of the fresh port versus the flushing port, (on left or right?)
But both show the diverter should simply cut the path for water coming in on hose off from going to the tank going across the the tank.
Not as much choosing which direction to go as water should always go inside but the diverter opens/closes the path to the tank!
Click these for best view and look which fits what you have?
Note that I failed to add the slash marks for where the valve should cut flow!
MISTAKE! I refer to left and right as viewed from the front/ outside, not as shown in reverse on these snips!
At the tank, there are no real surprise. Just a fill line coming in from hose through diverter valve and direct to top of tank. You have two tanks, both filled to one and then runs to the other.
Overflows and connection between them.
Then also a connection for the pump to draw a suction and get water from the tank. Pretty standard other than having two instead of one.
The pump area is a mess to follow but there "may" be some way for a check valve that is built into the pump "might" let water from hose go backward through pump to tank?? Not one I think of much but I can't say it won't either!
I marked up a bunch of this messy place for where I see things happen and about the only idea I came up with to prove if water is going backwards is to remove a connection at the pump and cap it while seeing if the tank still filled? Not a happy idea, for sure! No idea of how hard to get to this spot
even!

Alternate ideas?
Is the little filter at the pump clear and could you see if water was running back through it? That seems like a long trip and through lots of restrictions if you are getting much water into the tank when it should be cut off at the diverter valve!
Seems another failed diverter would be the more likely but life is NOT that dependable!
Any chance you can reach up under and hind the panel at the diverter valve and feel is water is going to the tank there or it changes when you move the valve? Put hot water in the port and feel that long line going over to the tank from the port to see if that line gets hot right away? When the diverter is closed, NO water should be moving in that pipe!
Sorry, lots more ideas than solid info on what is wrong!