How to navigate admin panel user from a local plugin to a content-manager page?

I had the exact same question - came here for ideas. You saying “For example using react-router” made me think: “oh, of course react-router-dom is available bc the default {pluginName}/admin/src/pages/App/index.{js|tsx} file uses routes”.

I looked up the version of react-router-dom being used in the plugin’s yarn.lock file - it’s v5. So we can use the useHistory hook from that version (React Router: Declarative Routing for React.js).

import { useHistory } from "react-router-dom";

function SomeComponentInYourPlugin() {
  const history = useHistory();

  return (
    // api::blog.blog is an example collection id
    <button type="button" onClick={() => history.push('/content-manager/collectionType/api::blog.blog/1'}>View Blog ID 1</button>
  )
}