When I use CloudPagesURL function with no paramenters except the Id i don't have any issues.
Case 1
<p><a title="MyPage" href="%%=CloudPagesURL(232)=%%" alias="ThisAlias" conversion="false">RSVP</a></p>
When I use CloudPagesURL with additional parameters other than ID i get
Error : 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Case 2
%%[
set @sk = _subscriberkey
]%%
<p><a title="MyPage" href="%%=CloudPagesURL(232,'sk',@sk )=%%" alias="ThisAlias" conversion="false">RSVP</a></p>
Now this is where things get intresting if i wrap around the above code with redirectto()
function everything works fine.
Case 3
%%[
set @sk = _subscriberkey
]%%
<p><a title="MyPage" href="%%=RedirectTo(CloudPagesURL(232,'sk',@sk ))=%%" alias="ThisAlias" conversion="false">RSVP</a></p>
Question: Is this behavior a bug in CloudPagesURL
function or Am I missing something?