Didn't understand what you like to do, what you like to show the block of megamenu only at specific pages, the correct syntax is:
{if $urls.current_url == your_desired_url } <div> some context here </div> {/if}
You can check this: global variables list