Fixes modal url generation once more.

The previous fix was not sufficient in fixing the cukes.