add, if exists, prefix to the switcher url

I do not know if this is the best approach, but it works for me.