url formating #190
goshawk1980
started this conversation in
General
Replies: 1 comment
-
The id's were added recently to avoid adding page redirects or have broken urls when a page slug changes. You can revert to the previous format where only slug is used by changing '/{slug}-#post_id#' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&post_id={post_id}&type=post'],
'/page/{slug}-#post_id#' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&post_id={post_id}&type=page'], to '/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}&type=post'],
'/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}&type=page'], in config/routes.php https://github.com/givanz/Vvveb/blob/master/config/routes.php#L145-L148 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to make the urls work without appending the page id?
I would like the urls to be mydomain.com/about-us and not mydomain.com/abous-us-15 :(
The number seems to append automatically when saving the pages/posts
This also affects browsing the site
mydomain.com/anything-15 will also load the about us page :( ... there is no check on the slug, only the id
This could be an issue as it could be considered as duplicate content
Beta Was this translation helpful? Give feedback.
All reactions