#6019 closed defect (fixed)
ExtractUrlPlugin does not handle paths `/path` as links
Reported by: | Mitar | Owned by: | Martin Scharrer |
---|---|---|---|
Priority: | normal | Component: | ExtractUrlPlugin |
Severity: | normal | Keywords: | |
Cc: | Mitar | Trac Release: | 0.11 |
Description
ServerSideRedirectPlugin assumes it is default plugin/handler so [redirect(/)]
in WikiStart page does not redirect to home (when home is handler by non-wiki plugin). ServerSideRedirectPlugin detects this as a loop.
Attachments (0)
Change History (8)
comment:1 Changed 15 years ago by
Status: | new → assigned |
---|
comment:2 follow-up: 3 Changed 15 years ago by
Component: | ServerSideRedirectPlugin → ExtractUrlPlugin |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Summary: | ServerSideRedirectPlugin assumes it is default plugin → ExtractUrlPlugin does not handle paths `/path` as links |
Fixed in #6813 of the ExtractUrlPlugin.
comment:4 Changed 15 years ago by
I have updated plugin but now I am getting 'ExtractUrlMacro' object has no attribute 'get_macros' error. Probably connected to [6816]?
comment:5 follow-up: 7 Changed 15 years ago by
Now it works. But when browsing history or just after setting up a redirect it displays This page redirects to: wiki:/ for [[redirect(/)]]
, which is not really true.
comment:6 Changed 15 years ago by
comment:7 Changed 15 years ago by
Replying to mitar:
Now it works. But when browsing history or just after setting up a redirect it displays This page redirects to: wiki:/ for
[[redirect(/)]]
, which is not really true.
I was already working on this but got interrupted by the work on the ExtractUrlPlugin and did not commit it right away.
Took me a while to understand what I meant. The plugin does not assume it is the default handler, in fact it rejects to handle anything per se. It replaces the WikiHandler (and only it) using a pre-handle request filter.
What is assumed is that the WikiHandler is the default handler for the
/
location, but not by this plugin but from my other plugin ExtractUrlPlugin which is used to resolve the given URLs.I will fix this ASAP.