Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Often times, I have had to change a few settings on a View that has a Page or Feed display, but not change the URL of the Page or Feed. This can be frustrating, since to save a View with a Page or Feed display appears to force a menu_rebuild so that the URL path for the display can be registered.
Thus, I propose that the menu_rebuild be made conditional. This could be done, I think, by temporarily saving what the old path was in a variable & then doing a comparison - something like:
if($old_url != $new_url) {
menu_rebuild();
}
I think this would make views saves much faster in many cases & would be much appreciated :)
Comments
Comment #1
EvanDonovan CreditAttribution: EvanDonovan commentedTitle was unclear.
Comment #2
esmerel CreditAttribution: esmerel commentedComment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThis needs someone to work on it.
Comment #4
EvanDonovan CreditAttribution: EvanDonovan commentedGuess that this would probably be 7.x-3.x by this point. I don't think I could pick this one up, though, at least not at the moment.
Comment #5
dawehnerI'm pretty sure that there was an issue which already had a patch. Sadly i fail to find it.
Comment #6
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.