Articulate icon indicating copy to clipboard operation
Articulate copied to clipboard

Resolves #385.

Open FloppyChips opened this issue 2 years ago • 5 comments

Resolves #385.

FloppyChips avatar May 24 '22 09:05 FloppyChips

Please can we progress this one, we'd like to include this project in our release. Great job by the way! Regards Stuart

FloppyChips avatar May 25 '22 09:05 FloppyChips

Hi thanks for this. It's been a long time since I looked at that code but IIRC there was a reason why 'localhost' needed to be checked there. Any chance you can provide me with some additional context as to these changes while you were debugging? I just don't want to release a breaking change.

Shazwazza avatar May 25 '22 16:05 Shazwazza

True this doesn't seem to have changed since first written. We noticed a problem when we added a second domain under the Culture and Hostnames settings in Umbraco, so we now have 1) https://localhost:44300 and 2) https://some_real_domain. I can't say this won't break anything but I think its clear there is some inconsistency between the hosts that are going into the list _urlNames and how they are being matched at the moment. It might be that checking for "localhost" at both points would also be a fix. Note that we wanted to have multiple blogs eventually but at the moment we just moved the Blog from under the root to under a sub-node.

FloppyChips avatar May 25 '22 17:05 FloppyChips

I can confirm that

private const string DetectDomainAbsoluteUrl = "localhost";

also works for us if you would rather have that.

FloppyChips avatar May 25 '22 18:05 FloppyChips

I have proposed an update where "localhost" is used in the comparison as discussed above, this also works for us.

FloppyChips avatar Jun 09 '22 08:06 FloppyChips