It looks like the /# of the url in the port and path check causes the problem. You can add # to your check to fix it.
/#
#