If you’re logged into WordPress admin, you’re able to load the “Map to this page” and Airpress will use the “Test URL” to populate it. … If you’re not logged into WordPress admin, you’ll get a 404 when you attempt to directly access the Virtual Post “Map to this page” URL.
Ah — makes sense!
I’m curious, with your specific example (a single VirtualPost config of ^folder/subfolder/(.*)/?), what did you expect to see (or want to see) when you visited /folder/subfolder/ ?
I expected a 404 or ‘no data returned’ page, as this is an erroneous entry. I don’t anticipate users of the final app to enter the URL manually — but if they did, I didn’t want a default value to be populated unexpectedly. (Actually, in this case it probably wouldn’t matter, as the returned page simply displays a list of records; I was more concerned about similar behavior on pages that might feed an edit or delete function.)
The application in question is a costume wardrobe database I’ve been fiddling with in part as a field test of AirTable and similar SAS offerings (exec summary: Airtable wins, hands-down) and in part to help in liquidating assets of a failed business venture that ended up in my lap. The index (archive?) Virtual Posts map to such things as ‘/wardrobe/genre/1940s’ or ‘/wardrobe/item/jacket’. Individual records will be accessed through RECORD_ID or a slug field, either as ‘/wardrobe/[key]’ or ‘/wardrobe/[item]/[key]’; I’ve not yet decided if there’s any value or detriment that would result from using the latter construction.
I think I may have made things more confusing by changing permalink formatting in midstream; that in combination with the “jes’ grew” nature of this development resulted in the template page permalink being the same as the Virtual Post match pattern sans $1. Accordingly,
nam[ing] all your “Map to this page” templates with a prefix of “TEMPLATE” so that the page slug is “template-something”
and changing the permalink to match took care of my concern, even if I mistakenly enter the truncated Virtual post URL while logged into WordPress.
Thanks for tracking this down so quickly and clearly!