Settings
Step 1: Access the Strapi admin panel.Step 2: Go to the “Littlebox Strapi Suite”.
Step 3: Select “Slug”.
Step 4: Click “Settings”.

Defines whether the default language appears in the URL. For example, if the default language is
en and the parameter is set to false, the URL will be domain.com/news.
If the parameter is set to true, the URL will be domain.com/en/news.
Home pageDefines which document is used as the home page. The content of this document is injected into the template defined within it. Read more about templates. In the list of slugs, the document set as the homepage will display an identification tag.

Defines which strategy to use for the homepage slug. The following strategies are available:
LanguageEvery document has a slug. When a document is set as the homepage, the system ignores the slug defined for that document and uses the language slug instead. For example, if the document with the slug/newsis set as the homepage, the system does not add the slug for the default language, so accessing the root domaindomain.comwill open it. For other languages, the system adds the language slug, such asdomain.com/pt, which opens the “news” document as the homepage in Portuguese.ContentThe system uses the slug set in the document assigned as the homepage.
How to create a slug?
Step 1: Access the Strapi admin panel.Step 2: Go to the “Content-Type Builder”.
Step 3: Select the collection or single type that will be exposed to the frontend through the API.
Step 4: Click “Add another field to this component”.
Step 5: Go to the “Custom” tab.
Step 6: Select the “Littlebox Slug” field.
Step 7: Fill in the following settings:



Step 9: Select the “Text” field.
Step 10: Fill in the following settings:


Edit button.

Edit button is clicked and changes are saved, the slug is detached from the title, and the two fields become independent.
API
Get data for pages
To get the data from the frontend, use your preferred HTTP client:The default language won’t show up in the URL slug if the
SHOW LANGUAGE SLUG setting is turned off in the slug module settings.Get data for homepage
To get the data from the frontend, use your preferred HTTP client:To return the page content, add the value “content”:
properties=attributes,content