send url using a switch.?

If you post your code, perhaps somebody will be able to spot the cause of your problem.