Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:51:40+00:00 2026-06-13T12:51:40+00:00

Here I want to know about the best practice first. Assume we create a

  • 0

Here I want to know about the best practice first.

Assume we create a category using symfony2 sonata admin bundle then it creates the slug as well

e.g. Name: “My Category”
Slug: “my-category”

Now when I edit Category name to “My Category Edited” the slug becomes “my-category-edited”.

So first question

Is it good to change slug every time we edit something?
As that slug can be used to put a check say in some if() condition so changing the slug may break things.

My Second Question

How to avoid changing the slug on every edit? I am using Gedmo (http://gediminasm.org/article/sluggable-behavior-extension-for-doctrine-2)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:51:41+00:00Added an answer on June 13, 2026 at 12:51 pm
    1. Generally, it’s better to keep initial slug in order to avoid 404 not found error (if you use slug as a page identifier).

    2. Check “Some other configuration options for slug annotation” paragraph in the manual that you provided.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know about the best practices here. Suppose I want to get
Here is the wiki for those who want to know about Apache CXF. http://en.wikipedia.org/wiki/Apache_CXF
Here's the method. I want to know if I am violating any best practices
I want to know which of these is considered best practice for iOS development:
The thing I want to know here should be really 'basic', but it is
I just want to know where am i wrong here: import java.io.*; class Tokens{
Here my question is not related with coding, I want to know that how
I know, I am propably way out of line here :-) I want to
There's already a question on this here. But i want to know if its
I am now at my wits end. here's what i want to know, how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.