I have been wondering if there’s a way to use tinyurl for selective site content such as project / sub-projects and disable the redirection to the usual uid but rather keep using tinyurl within the adressbar for every task…
otherwise i’d just randomize the uid to have a similar looking url for each sub project…
when i create a page as well as children in the panel, i want to use the tinyurl instead of the uid (uri whatever you call it)
for example instead of
/project/project-page-1-whatever
i rather have a short version like:
/project/m64q1z
but tinyurl is just there for redirecting to the real link. However which will then change to how the real url will look like. I want it to be a replacement just for certain pages, i.g. configure in blueprints.
I think a token is the most elegant and robust way to do this. Even it the UID leaks (sitemap, Panel, whatever), the page won’t be accessible wihout the token.
where I would prefer to have a short permalink to each news. I see the problem of duplicate content too. The proposed token solution produces too long URIs for my taste. And if I may throw some additional requirements:
selective tinyurls (since I don’t want them everywhere)
permanent tinyurls (as far as I understand the tinyurl hashes are stored in the cache folder of kirby, which may never get lost or the permanent tinyurls are no longer permanent.
When using tiny URLs like intended (with the redirection), they don’t have the duplicate content issue.
They are permanent as long as you don’t change the original page URI. They are generated every time they are needed and won’t get lost. Each time you get the tiny URL for a specific page URI, you will get the same result.
And concerning the first requirement: Sure, you don’t need to use them on pages where you don’t need them.