dokuwiki-plugin-move icon indicating copy to clipboard operation
dokuwiki-plugin-move copied to clipboard

When links are rewritten the new link is ugly

Open bactram opened this issue 8 years ago • 4 comments

First, this is a really useful plugin. Thanks!

When I move a page, it rewrites all the links that point to it so they point to the new location. When this is done, the resulting link, while it works fine, is now ugly. I have many pages I want to move into a different namespace. All the rewritten links are changed from looking like [[:Page Name]] to [[:ns:page_name]]. This renders poorly.

I'd like it if it would rewrite the link to look like [[:ns:page_name|Page Name]]. This would make it so I don't have to go chasing all the old links to make them look good again.

Thank you.

bactram avatar Mar 03 '17 20:03 bactram

bactram, what plugins are you using? also what versions of dokuwiki and move?

We are using indexmenu plugin with left hand navigation and using titles for the index names. When we use Move to move to other namespaces this does not happen, to my knowledge, and we have done a number of moves! So, I ask what are all the details of your setup? See our dokuwiki on https://opencpn.org, then pick BOOKS

rgleason avatar Mar 03 '17 22:03 rgleason

rgleason, I'm using Dokuwiki version Frusterick Manners, and Move version 2017-01-07. I also saw this when I was running Elenor of Tsort. I'm using the default config settings for Move. My plugin list from the configuration menu is: Authpdo, Gallery, Wrap, Iframe, Orphanswanted, Pageredirect, Include, Move, Mathjax, Imagebox, 404manager. All my plugins are up to date.

I just created a page :Sample Page 1. It's contents are:

====== Sample Page 1 ======

[[Sample Page 2]]

I then moved Sample Page 2 into the wiki namespace using the tree-based move manager. This is the new contents of Sample Page 1:

====== Sample Page 1 ======

[[wiki:sample_page_2]]

As you can see, while the link has been rewritten, it now looks ugly. I would like it to look like

====== Sample Page 1 ======

[[wiki:sample_page_2|Sample Page 2]]

bactram avatar Mar 03 '17 23:03 bactram

Have you looked at Admin > Config for a setting to preserve the page name? I don't have time to look!

rgleason avatar Mar 04 '17 01:03 rgleason

This is currently not supported but I agree it would be a nice feature. An older version of the plugin (before version 43da6fb56e2acca4d3d741eb2007bb493640fee4) contained some code that should have preserved the page name such that [[:Page Name]] becomes [[:ns:Page Name]]. As a workaround, you could consider enabling the useheading configuration option such that the first heading becomes the name of the link if no explicit link name is given.

michitux avatar Mar 05 '17 15:03 michitux