Create a menu block based on path using views
You can simply use Menu Block module to accomplish this task. If you want to display a block on specific pages just goto the relevant block configuration and under " Show block on specific pages" select "Only on listed pages" define the following

student/*

Now your block will appear only if this URL pattern will match. No matter what you have used to create your block.