0

How to hide this sidenav and top navbar for certain route path that will launch in new window?

So https://{ipAddress}/dashboard is mapped to a component that renders this sideNav, navbar, and content area... so if i select any task from sidebar say View User then https://{ipAddress}/dashboard/viewUser then viewuser component will be rendered in that content area.

Now i have a requirement where i need to launch say https://{ipAddress}/dashboard/update... in new window.. but it should not show sidenav n top navbar.

We are using router v6.

Conditional rendering with React Router this works if route is being rendered in same tab..but if you opening in new window altogether..it does not work

enter image description here

Ankita Jaiswal
  • 262
  • 4
  • 17
  • Does this answer your question? [Conditional rendering with React Router](https://stackoverflow.com/questions/46842117/conditional-rendering-with-react-router) – Rman__ Apr 08 '22 at 06:56
  • @scriptydude no it works if its same tab..not for new window – Ankita Jaiswal Apr 09 '22 at 09:27

0 Answers0