![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
When importing, update/change internal links
Title:
When importing, update/change internal links
Area:
Importing, links
Summary:
When I imported my LJ entries to DW, a lot of my LJ entries were cross-linked to other entries in my LJ , so it would be great if the Importer could update those links to the new DW URLs when it imports those entries.
Description:
As I import entries from my LJ (or other journalling service), any internal cross-links from one of my journal entries to another of my journal entries should be updated as well.
So, if my LJ post 'zellieh.lj.com/123' (which becomes something like 'zellieh.dreamwidth.org/123') contains a link in it to another of my posts, 'zellieh.lj.com/100', then that link should be updated it's new Dreamwidth URL, 'zellieh.dreamwidth.org/100'.
NOTE: I am only suggesting this initially for links that go from one of my journal entries to another of my own entries, not for any links to other people's journals.
I am not a technical person, but I'm assuming that at some point in the import process, there's a record of the old LJ URLs and the new DW URLs for each entry; I'm hoping that that's the information that could be used to update the internal links.
Pros: This would save a lot of time when moving from another journal site to Dreamwidth, because you wouldn't have to go back in and hand re-code a lot of older links on older posts. (Something I still haven't done, because I am dreading the work involved.)
Cons: It would likely complicate and slow down the initial importing process, and you would likely have to wait until you had all the information available at the end of the import before you could update all the links. Perhaps it might be better as a separate option, or next step after the import is complete?
This suggestion:
Should be implemented as-is.
17 (38.6%)
Should be implemented with changes. (please comment)
19 (43.2%)
Shouldn't be implemented.
2 (4.5%)
(I have no opinion)
4 (9.1%)
(Other: please comment)
2 (4.5%)
no subject
no subject
no subject
no subject
And if I could do this even much later than the import, it would be awesome - I've already imported my LJ months ago, but still would love to have the possibility to adapt the links without having to import everything again.
no subject
no subject
no subject
no subject
For right now, I don't mind that people get routed back to my LJ. But that'll probably change in the future. And if there's a way to go back and change it "at some future, unspecified point", that would be fabulous...
no subject
no subject
no subject
no subject
no subject
no subject
no subject
no subject
no subject
* username.livejournal.com/1234.html
* www.livejournal.com/users/username/1234.html
* www.livejournal.com/talkread.bml?journal=username&itemid=1234
* www.livejournal.com/talkread.bml?itemid=67896789
For that last one, there is a mechanism for converting those to the new URLs, but those old itemids are different from the current ones. Also, the conversion function would have to be called on each of those URLs to see whether it pointed to the same journal or a different one, and I'm not even sure if the conversion serves the new URL or just the entry (the URL in the address bar doesn't repoint to username.livejournal.com/1234.html and the entry shows in the site scheme, not my style).
I'd love if this could pick up all of the links, but if the earliest links were too much trouble to decode I'd understand.
no subject
no subject