Questions tagged [slug]
part of a URL that makes it more human readable or SEO-friendly, but without necessarily being required by the web server.
1,271
questions
0
votes
2
answers
34
views
How to resolve this NoReverseMatch error?
I am currently try make a task manager such that there are folders which have tasks in them, I have been stuck on this problem for hours now and am not sure at all what is the issue
this is urls.py
...
0
votes
1
answer
41
views
Import .md files dynamically by slug
i am pretty new to Astro, and i want to find out how to have a file such as [...slug] read md files based on that slug. Best with using collection entries or something similar. It seems there is no ...
-1
votes
0
answers
14
views
replace woo product category slug to id
i wanna have numerical urls
i have a code for replace product slug to product id after creating new product or after updating product:
/*** Remove Product Slug ***/
add_filter('wp_unique_post_slug', '...
0
votes
1
answer
40
views
Creating [slug].tsx in Next.js Page router
I am trying to develop an app in Next.js using the page router framework. So for each component I have page.tsx under relevant folder name. For a particular component I need to have slug for routing, ...
-1
votes
0
answers
13
views
Is it possible to update the :slug parameter in the query with react and redux toolkit
I am using :slug instead of :id in the url and the value does not update when slug is in the query parameters.
This is the form(I am using react-hook-form):
import {
useUpdateLogMutation,
...
0
votes
0
answers
72
views
Insert ID post instead of name post in slug (permalink) wordpress
I have a custom post type that I want the post ID to be written in the slug instead of the post name when it is published. I type the following code and it works, but the problem is that after the ID, ...
0
votes
0
answers
15
views
Slug changes make header appear twice
I changed my slugs in the quick editor for SEO purposes. Now the header shows up twice.
I've tried creating a new header and select that over the existing one, but it still shows up twice. One is ...
0
votes
0
answers
27
views
Eloquent Sluggable getting wrong record and not scoping based on route parameters
I have one route like this: /vehicles/vehicle-one/projects/project-one
And another route like this: /vehicles/vehicle-two/projects/project-one
I am using the Eloquent Sluggable package to handle the ...
0
votes
0
answers
9
views
TYPO3 12: Slug part for extension is not added
I have added a slug field to my extenson (tt_board) and its part is not added to the final urls.
Example-Url:
https://myextension.mydomain.com/themen-1/forum-1/?tt_board_tree%5Buid%5D=33&cHash=...
0
votes
2
answers
79
views
Errors with Dynamic Routing in Next.js. trying to fetch and display individual details based on slug
I'm trying to get the individual slug for each job that I have posted. I am using the app router and have set up the following page: src/app/Job/[slug]/page.js
Here's the code:
async function ...
0
votes
1
answer
71
views
How to show the selected slug value as selected in <select> dropdown in Svelte
I navigate to this page with the slug param deckId, I have a dropdown menu that is bound to deckId.
My problem is that when navigating to the page or refreshing the selected option disappears. The ...
0
votes
0
answers
27
views
persian slug in django urls in page start with persian slug address
when I use persian slug to get my post details I have a special problem..
in the pages with persian slug urls in the page start with corrent page address like this :
in the page : example.com/س��ام-...
0
votes
1
answer
64
views
Getting 404 error when trying to use slugs in Django
I am using Django to develop a website, and need use slugs in URLs. When I use ids, everything works well.
I have done the following steps:
I have a model Posts:
class Post(models.Model):
title =...
0
votes
0
answers
18
views
Using slugs with Django (Form + Model)
I have the following error:
Error in page
Django admin DB
Shell object
The logic that I use in Django is based on a model and the ModelForm class.
Here is the model:
from django.db import models
from ...
0
votes
0
answers
27
views
How to translate static slug in Django
Hello I am trying to develop a multilanguage website in Django.
I am using django-modeltranslation for this.
I can change the dynamic slugs via Django admin this is fine.
But how can i change the ...