fixes saving permalinks when using joins and includes
fixes saving permalinks when using joins and includes

Fixes #2385

lzcabrera/spree-1-3-stable,lzcabrera/spree-1-3-stable,lzcabrera/spree-1-3-stable