How to get $current_url

i new to write an {if} statment to show only content when something happens based on the current url, but it seems the old parameter of $current_url doesnt work anymore, can some let me know what the correct way to do this is.

i would really like to add a parameter like $get_target=popup

so in the url you have “page_id=1&get_target=popup”