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”.


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.