I have the exact same issue. I do this in my template :
echo do_shortcode(‘[album id=1 template=compact]’);
and I get the 2 galleries in my album to show correctly, but the link redirects to some post !
-> https://hen.degy.be/?p=55&album=1&gallery=2&pageid=55
when I add the shortcode in a seperate page, it does seem to work.
-> https://hen.degy.be/?page_id=153&preview=true&album=1&gallery=2
it’s a raaather different url … any ideas?
the pagelink is just incorrect – when i var_dump($gallery) it shows :
["pagelink"]=>
string(64) "https://hen.degy.be/?p=55&album=1&gallery=2&pageid=55"
and when i vardump in the page that does work, i see this :
["pagelink"]=>
string(39) "/?page_id=153&album=1&gallery=1"