How to get full url of blogger post, page and all other

Respected all,

I want to remove my all page from google search that include “?max-result”.

Ex: https://www.sahinews.in/2018/01/pati-patni-hindi-chutkule-husband-wife-jokes-in-hindi.html?max-results=7

So I want to add noindex tag for this type page. To this action I need a code which displayed noindex tag for “?max-result” added urls.

get only url without “?max-result”.

Kindly provide me a code like that I use for b:if condition.