-fixes the bug where phase names containing symbols were causing an ILS ...

...no to load. Now using space ids to generate the links instead of phase names.