Code Monkey home page Code Monkey logo

Comments (5)

ottodevs avatar ottodevs commented on July 21, 2024

Hi Yalda! I was testing the platform with the purpose of fixing some of the issues, this one specifically does not seem an issue for me, since when you create a post with the same name it actually adds the hash at the end to keep duplicate title posts with separate URLs, ruby on rails is very smart in fact!!
Try it if you don't believe 👍

I think you can safely close this issue :)

from spacedecentral-network.

ottodevs avatar ottodevs commented on July 21, 2024

Probably in the example there existed an older version with the same title (building design outline), that is the reason why the hash was automatically added at the end.

from spacedecentral-network.

ottodevs avatar ottodevs commented on July 21, 2024

If you decide that is better to have hashes at the end of every post url, then we could change slug_candidates in models/post.rb to force this behavior

from spacedecentral-network.

stellarmagnet avatar stellarmagnet commented on July 21, 2024

@ottodevs nice catch :) thanks for looking into this!

Do you think every post should have the hash for consistency? I guess i'm not sure what is standard web behavior for this design pattern

from spacedecentral-network.

ottodevs avatar ottodevs commented on July 21, 2024

Well I don't really know what to say about that, I think is a matter of taste, I really like the simplicity of having pure text slugs with the fallback of the hash for duplicated titles, some forum platforms like thredded, seem to have the same behavior, but others like discourse or lithium have a consistent numeric slug apart from the text for every forum topic, so, I think there is not a standard on this 😅

If it helps, for this case I would recall the good ol' programmer rule: "If It Is Working Don't Change"

from spacedecentral-network.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.