Here it is in linear form which is easier to understand:
I thought you said it was staying on permanently before you moved the wire?
EDIT. If you remove that blue wire and just make it safe with a terminal block on it, when you restore power is the entrance hall light on or off?
If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local