Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Possible to disable unique slugs?

2011-10-27 10:02:21 Christian Rosberg

Is it possible to disable the unique slug feature in the latest version of Lemoon (we are running Mindroute.Core: 1.4.2.177, Mindroute.Lemoon: 4.4.2.177)?

One of our client has a page structure like www.domain.com/segment-1, www.domain.com/segment-2 with sub pages like services, products etc. and these slugs (services, products) should not preferably be site unique but used to build unique URL's (based on current segment name). Using unique slugs means that you always can use domain.com/slug (independent of current page structure), isn't this quite bad from a SEO-perspective (having multiple URL's pointing to the same source without using 301-redirects etc.)?

Regards
Christian Rosberg

All replies

  • 2011-10-27 23:08:35 PG

    I think you can create your own Slug Plugin. The current one is activated under Manage -> Plugins. Take a look in the SDK how to create your own plugins.

    Hope this helps.

  • 2011-11-30 21:42:00 Pär Abrahamsson, Infobyte

    No you can't. The database design specifies that the slug field shoud be unique. So even if you write your own slug-creation-plugin you will end up with errors from the database when you try to save it.

  • 2011-12-01 09:33:49 Linus Birgerstam

    In the current version of Lemoon slugs muste be unique per site. But we are looking to improve the routing and url generation for Lemoon 4.5 so that slugs does not have to be unique. We are also hoping to improve the urls for multi-language sites so that you can specify the language in a url segment like www.domain.com/sv/slug and www.domain.com/en/slug.

    From a SEO-perspective you shoul not have multiple URLs pointing to the same resource, but this is easily fixed by adding <link rel="canonical"> with the preferred url to your masterpage.