I have an archive page set up for a custom post type, which displays all the posts. When you click on a post, it opens a modal with more information.
So as it is now, there is a single url:
https://localhost:3000/team
I’m trying to figure out a way to map different URLs to this same page, that will automatically open the modals.
For example,
https://localhost:3000/team/jon
would still go to the same page, but it would open up the modal associated with Jon.
Initially, I thought this would be possible by adding query strings and rewriting them, but all of the similar questions and answers I’ve found have not involved the crucial requirement of keeping those unique URLs while still using the same page.
Is this possible?