Save url filters to persistance when change to other component

I appreciate your help, Im trying to save url with filters using routing in config like this:

routing: {
    router: historyRouter<CustomRouteState>({

  createURL({ qsModule, routeState }) {
  const queryString = qsModule.stringify(queryParameters, {
        addQueryPrefix: true,
        arrayFormat: 'repeat',
  sessionStorage.setItem("URLFilters", queryString)

But, when i change to other component session storage disappers because “url goes to another”… so what could be the way to solve this issue ?