glensc / dokuwiki-plugin-pageredirect

Redirects page requests based on content
https://www.dokuwiki.org/plugin:pageredirect
19 stars 19 forks source link

Namespace relative linking with periods not working #19

Closed jayqi closed 7 years ago

jayqi commented 9 years ago

Basically I want to redirect projects:vort2d_kalman_filter to projects:vort2d_kalman_filter:start.

On the page projects:vort2d_kalman_filter, a regular internal link [[.:vort2d_kalman_filter:start]] properly links to the desired target page. However, the redirect instead actually links to vort2d_kalman_filter:start in the root namespace, because it tries to use the URL mydomain.com/doku.php?id=.vort2d_kalman_filter:start.

For reference, here is Dokuwiki's relative linking syntax.

glensc commented 7 years ago

so, for clarity, your page projects:vort2d_kalman_filter content is this?:

#redirect .:vort2d_kalman_filter:start

[[.:vort2d_kalman_filter:start]] 

and you expect redirect lead to projects:vort2d_kalman_filter:start, but it leads to .:vort2d_kalman_filter:start ?

glensc commented 7 years ago

should be fixed with e51fffb