kipusoep / UrlTracker

The Url Tracker for Umbraco
MIT License
54 stars 61 forks source link

Custom URL entries automatically appearing #203

Open jerumschlasses opened 5 years ago

jerumschlasses commented 5 years ago

Running Umbraco 7.5.8, UrlTracker version 3.15.0. We recently started having entries magically appear under Custom URL entries. In the notes column it says "Node removed" however the node has not been removed. The old URL and new URL are the same in the majority of instances. The site column is not populated like it normally is. Any ideas would be welcome. screenshotUrlTracker

jerumschlasses commented 5 years ago

I've just discovered this happens when nodes are unpublished. The custom entries disappear while the page is unpublished, but reappear after the page is published. Setting urlTracker:trackingDisabled to true stops the behavior, but at the cost of identifying all URL changes.

jerumschlasses commented 5 years ago

An acceptable solution is to move these harmless entries to the automatic entries view. In UrlTrackerModel.cs, the ViewType property conditionally lists the notes that determine which ViewType to put the entry. I'll complete a pull request to add "Node removed" to the conditions.