Thanks for the quick reply. That was the answer I expected and I agree that it would be a non-trivial bit of work to somehow merge the contexts.
If anyone has other workarounds or approaches to avoid writing a URL multiple times in a way that works with shortcodes I’d appreciate it. My workaround works, but is kind of clunky. Maybe if there was an elegant way to reference the parameters defined in the front matter in the markdown…