I currently have a routing set up as follows to enable an "Edit" entry page following on from this question but I'm getting the following error message when going to that page.
Variable "entrySlug" does not exist
I have my routing set up as follows within my CP, which loads a URL like so mydomain.com/marketplace/authorname/entryname/edit
and within my listings/_edit
{# Find the entry by slug and author: #}
{% set listing = craft.entries({
section: 'networks',
slug: entrySlug,
author: currentUser
}).one() %}
I'm really unsure why it can't find the slug of the entry.