I understand that for Community Events the pages like /events/your-events/add are “virtual” meaning they are not real pages with meta data and such. However, in my custom theme, the layout and content of the sidebar of a page is determined by the slug of that page. For instance, another page on my site called “Articles” with a slug of “articles” which automatically loads a sidebar file called “sidebar-articles.php” based on the page’s slug.
So, since the virtual pages don’t have slugs, is there another way to determine whether the user is visiting a virtual page as opposed to a real page? Like a function or something?