Thanks again for the reply, as I said I am new to this and still learning...
I tried the method above without the single ' with double " and all other ways I could think of but the closest I could get was it doubling up on the last two directories..
so I was getting /images/albumname/images/albumname&slideshow
This then gave me a clue as to what was happening and from there I managed to solve the problem with the following code.
<?php
$name = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$name = trim($name, '/'); // trims the / from the end
$extra = '&slideshow';
?>
and then to output the link
[code=php]<a href="<?=$name.$extra;?>" title="View as slideshow">View as slideshow</a>[/code]
So all is working great now. 🙂
Thank you so much for your help, there is no way I would have solved the problem without your guidance!!