After publishing some entries, I've changed the section setting "Entry URL Format" from news/{slug} to news/{id} but I had to re-save every entry to reflect the change. Is there a better and fast way to update all entries URIs after changing the entry URL format?
-
Normally a background-task should take care of it, as soon as you save the section setting.– VictorCommented Jun 22, 2014 at 19:53
-
@VictorIn unfortunately, that's not the case here.– mohd4482Commented Jun 22, 2014 at 20:02
-
1Odd, try sending a support-request from your dashboard including the runtime folder to P&T. It looks like a bug to me.– VictorCommented Jun 22, 2014 at 20:12
-
Does clearing the caches help?– Simon KuranCommented Jun 22, 2014 at 20:16
-
1@BenCroker A support request was sent to Pixel&Tonic and I think they're working on it. I'll update this question once I get a solution from them.– mohd4482Commented Jun 26, 2014 at 21:15
2 Answers
The entries won't immediately get updated, as it could take a little while to go through all of them, but you should see a little progress bar in your CP header immediately after updating your section's settings, and if you click on it, it will give you more details -- saying that a "Resave Elements" background task is running. Once that has completed, your entries will have new URLs.
In my case, it was not working as indented with localised entries but thankfully that was fixed on build 2562.
For anyone wondering what's going on with a background update, look at the database, there's a table called tasks
, and each row has a steps
counter to tell you how many records are left to update. You can refresh the table to see how the updates are progressing.