Re: [Tiki-users] Need for relative links?
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> Tue, 01 Feb 2022 09:32:04 +0100
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <[email protected]> |
Am Montag, dem 31.01.2022 um 21:52 +0100 schrieb Torsten Fabricius via TikiWiki-users: > Hello Volker, > > > > I am not sure wether I understand you correctly. To be honest, I hadn't studied the "Wiki Syntax Links" page thoroughly yet. With "relative link" I don't mean a link relative to the current website, but a link relative to the current namespace. I assumed that namespaces in Tiki work similar to hierarchical page names in MoinMoin. I've tried it, and it seems like links relative to the page (in the current namespace) aren't supported. With MoinMoin's hierarchical namespaces, if you have a link called "mypage", then "/subpage" will refer to "mypage/subpage". Or "../sisterpage" will refer to a sister page, etc. But namespaces don't seem to work like in MoinMoin. > > You speak about page renaming alters automatically the url > respectively the linknames to that page. > > > > This applies only to WikiPageNames respectively ((wikipagenames)) > and only when used within wiki links. I'll stick to internal links, when possible. So the answer to my question seems to be: relative links (within namespaces) aren't supported, generate absolute links. Thanks, Volker > > > Relative links like [whatevertikiobject] and absolute links > like [https://example.com/sometikiobject] are both not > updated. > > > > Reson to use relative links: > > [sometikiobject] would make it possible to > change the domain pointing to your website. > > > > Given you run your site with https://example.com and for > whatever reason you change to https://newdomain.org. After > the change ... > > > > ... [https://example.com/sometikiobject] will > not work anymore and you willbe directed to an error code, likely > error 404 ressource not available. > > > > but > > > > [sometikiobject] will be directed to [https://newdomain.or/sometikiobject] > > > > in my opinion this is the main reason for relative links. > > > > What do other users think? > > > > Best regards, > > Torsten > > > > > > Am 31.01.22 um 20:34 schrieb Volker > Wysk: > > > > > > Hi! > > I'm writing a MoinMoin-to-Tiki migration program and I'm facing a weightydesign choice: Should I make all links absolute? > > My reasoning is that in Tiki, all links are updated automatically when apage is renamed. So there seems to be little need for relative links.I also had some trouble with relative links and namespaces in Tiki. > > So here is my question: Are there any reasons for using relative links inTiki? > > Thanks in advance,Volker > > > > > > > > _______________________________________________TikiWiki-users mailing listTikiWiki-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > _______________________________________________ TikiWiki-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmH48AUACgkQ+K4ydFOs HoUf2RAAzLqtwx3MKIHK1bmcFnUHbNxtzVHtKyHgMSAZNDNF9V4/7qvWEULYEvK5 Y/Ywa/DxrRZ22NZ/nom5VN0iMolTTaVyNaf3lvWXjya73ojiu71F3D6mBT7W9DnL xpxui9YNnC9nQvmns5DfGb5KXsRmdrKwkcvkiFi06/TgdL8FHGjMEJoaQ5WSLIGF BB5WyGhnURD32K2WKc3pZTZnoh8yAR+QKC9pXX2SdFGJ4rSDNk8goPxOwTERueW6 29pTBIScRL3GfGOXdQGm28dCYAZEGBeBzNeVuFtK4u1AE3AhimDikT8Bpozi8SCf YhPGhGgZF+wJp7z/TPtScj6IMAMZ0JtwyRIMXWyY5EH18j0xP6NXVjySCCUbqPSx bdNyRU1a++0ZrBH5dXkRPWXylUFvXCH9vm5xBJc3usjrtDC5OMA5QIgBM9xF0z9L fbD1nynd4eHVVIwky8rYAdNykKIk5j/ol6GeBIZL9H4g8V4I/oSXmIe41Ba++tdw GTlf83N2c/A3I9SscUzQuvfIr1SS8N9vUILJWqCxgk6gdh+KKpzOGQU1Zn9+7fxG hmj4AakKyzULlrQBaa0CEjC5Deb5CavnktXibCRAbxSspJbfEyDYLQJ2VaIysUtm PYBn3j9qAlviFSdjvf8ke9P0O4RRf/Yp5/UK+o8yWl46NvoFyCE= =h2c5 -----END PGP SIGNATURE-----