silverstripe / silverstripe-elemental

Create pages in Silverstripe CMS using content blocks
http://dna.co.nz
BSD 3-Clause "New" or "Revised" License
110 stars 115 forks source link

Dependent pages refers to wrong page when an element links to the page. #682

Open ChrissiQ opened 5 years ago

ChrissiQ commented 5 years ago

Elemental Version: 4.1.0 SilverStripe Framework Version: 4.4.1

The dependent pages tab in the page admin links to a page with the ID of the element, instead of the page that the element is on. This link is broken because the element is not a page and can't be reached at that URL.

Screen Shot 2019-06-21 at 4 42 25 PM

Screen Shot 2019-06-21 at 4 47 06 PM

/admin/pages/edit/show/258 is the wrong link to get to the page. 258 is the ID of the element that contains the page link.

Another element is in there with an empty title and can't be clicked, but I believe that is a bug in SilverStripe and has been reported elsewhere.

brynwhyman commented 5 years ago

Another element is in there with an empty title and can't be clicked, but I believe that is a bug in SilverStripe and has been reported elsewhere.

Captured as an issue here: https://github.com/silverstripe/silverstripe-cms/issues/2428

robbieaverill commented 5 years ago

I suspect that both issues will be core bugs, but we can leave this issue open until resolved nonetheless