I am relocating the bathroom door and the toilet vent is right in the middle of the new opening. I want to put the vent in the wall behind the toilet which will be upstream of the toilet. Will this work? The vent is currently about 6 feet in front of the toilet. The shower drain will be connected into the 3" toilet pipe about 3 feet downstream of the toilet.
The image below is what I'm hoping to do, with two different ways to handle the vent connection.