Params issue in view mode when macro is added to template

I created a new macro in global template and blueprint menu. I viewed that using preview option and was not able retrieve contentId and content type in query params on console, even though they are present in head tag of HTML element.
Below are the values logged to console from request params:

 contentEntityId: '',
 contentType: ''