This is now solved, just incase anyone else is stuck and this cane help I solved the problem with the following code..
[code]<?php
$name = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$name = trim($name, '/'); // trims the / from the end
$extra = '&slideshow';
?>[/code]
I then called the link using a simple..
[code]<a>" title="View as slideshow">View as slideshow</a>[/code]
Hope that helps