I’m using Photolux WP Theme, it uses a JS to display all portfolio items in a gallery grid (http://pexetothemes.com/demos/photolux_wp/) so I guess the url is generated there.
I’m not a programmer but if you can point me the right direction where I should start to look will help me a lot.