Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Multi-site getCpEditUrl not scoping for site #3089
On a multi-site install, if you are using
Steps to reproduce
Ah sure, an actual URL example would have been helpful, sorry about that...
We have an Applications Index single that is available across multiple sites. If I visit that entry on the front-end of two different sites:
Where I would expect them to be:
There was some logic to omit the site handle when creating the entry edit URL, if the entry’s site was the same as the current site, which is fine in the CP, but didn’t take into account that it might be a front-end request, where the entry will almost always be queried for the current site, which may not be the same site that the CP gets.
Fixed for the next release.