Configure default entity values from available tokens like the url path or query arg.
[current-page:query:topic]
/node/add/class?topic=12
Combine with Form Block and Current Page Entity Tokens to have access to field values from an entity that is referencing the one being created.
Related modules