-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customised slugs for posts #2916
Comments
I think this is supported in the micropub endpoint, so it's just a matter
of exposing that in the posting interface.
A workaround is to use something like https://quill.p3k.io to post which
allows you to customize the slug.
…On Mon, Mar 22, 2021 at 10:01 AM Abhas Abhinav ***@***.***> wrote:
Is your feature request related to a problem? Please describe.
While reposting something or creating a bookmark, I don't seem to have any
control on the generated slug. For bookmarks, for example, the slug is
derived from the title of the bookmark.
Describe the solution you'd like
I has hoping for a way to to either customise the slug manually. Or use
random, numeric, non-sequential slugs so that the URL shorter and also more
meaningful.
If there is a quick hack to do this at the backend, I would be glad to
experiment and report back.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2916>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAXTS5ZUVVJN4QZGYQBDJLTE5LULANCNFSM4ZTJDQXA>
.
|
Thank you. That's a great suggestion. Quill lets you set custom slugs for new posts. Unfortunately, likes, reposts and bookmarks still have very long permalink URLs. Let me try out other micropub tools and see if any of them might be more suitable. |
So while Micropublish allows one to customise the slugs, Known does not respect them. Both Quill and Micropublish use the "mp-slug" as the attribute to store the slug. I couldn't find a mention of this in the Known code. Perhaps the attribute that needs to be sent is different. |
I added this line: $slug = date("mds"); just before this line here Idno/Common/Entity.php#L841 and now my permalinks are in the Now it also doesn't matter if I use Known's built in bookmarklet or Quill or Micropublish. |
@abhas this issue is related to idno/indiepub#9. I hacked customized slugs on my site to add 'mp-slug' in IndiePub plugin.
|
Is your feature request related to a problem? Please describe.
While reposting something or creating a bookmark, I don't seem to have any control on the generated slug. For bookmarks, for example, the slug is derived from the title of the bookmark.
Describe the solution you'd like
I has hoping for a way to to either customise the slug manually. Or use random, numeric, non-sequential slugs so that the URL shorter and also more meaningful.
If there is a quick hack to do this at the backend, I would be glad to experiment and report back.
The text was updated successfully, but these errors were encountered: