#4695 closed defect (fixed)
Patch to correct anchor pages redirects
Reported by: | Owned by: | Martin Scharrer | |
---|---|---|---|
Priority: | normal | Component: | ServerSideRedirectPlugin |
Severity: | normal | Keywords: | anchor, redirect |
Cc: | Trac Release: | 0.11 |
Description
ServerSideRedirectPlugin does not redirect well to pages with anchor links, e.g.
[[redirect(MyPage#MyAnchor)]]
I even filed a bug to trac (http://trac.edgewall.org/ticket/8072) but it appears that #MyAnchor should be the last part in resulting URL.
I.e. by now it looks as http://mytrac.domain/wiki/MyPage#MyAnchor?redirectedfrom=OtherPage instead of http://mytrac.domain/wiki/MyPage?redirectedfrom=OtherPage#MyAnchor
Enclosed patch fixes this issue.
Attachments (1)
Change History (3)
Changed 16 years ago by
Attachment: | patch_from_0.11-r5285 added |
---|
comment:1 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the patch, I applied it now.
Please use the unified format (e.g. diff -Nur
or svn diff
) and a file extention of '.patch
' or '.diff
' for future patches to improve the display in Trac and for simpler application using patch
.
@All:
Should any problems regarding this patch occur please reopen this ticket.
comment:2 Changed 16 years ago by
Please use the unified format (e.g. diff -Nur or svn diff) and a file extention of '.patch' or '.diff' for future patches to improve the display in Trac and for simpler application using patch.
Thanks for advice. That was my first patch. I will post unified diffs since now.
patch to fix Anchor redirects