Add unique referer IDs in the back end
Also add the referer ID to the navigation menu links
Preserve the table-specific referers
Fall back to the latest entry if there is no matching key
Limit the fallback routine to the back end