| 145 | === Redirect === |
| 146 | It is sometimes useful to create alias names for wiki pages (or tickets or other trac objects. This can be accomplished using the "redirect" macro. |
| 147 | |
| 148 | ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/redirect.py |
| 149 | |
| 150 | ''Usage:'' E.g., on page !RequestForRedirect use ![[redirect(ticket:976)]] to create an alias wiki name for ticket #976. |
| 151 | |
| 152 | ''Note:'' the argument to the redirect macro must be in general form of TracLinks (item:id). |
| 153 | |
| 154 | ''Note:'' to edit a page that contains a redirect macro, you must type its URL directly into your browser's location bar and append the string '?edit=true' to it. |
| 155 | |
| 156 | ''Version:'' >= 0.8 |
| 157 | [[BR]]''By:'' Bernhard Haumacher <haui at haumacher.de> |
| 158 | |
332 | | === Redirect === |
333 | | It is sometimes useful to create alias names for wiki pages (or tickets or other trac objects. This can be accomplished using the "redirect" macro. |
334 | | |
335 | | ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/redirect.py |
336 | | |
337 | | ''Usage:'' E.g., on page !RequestForRedirect use ![[redirect(ticket:976)]] to create an alias wiki name for ticket #976. |
338 | | |
339 | | ''Note:'' the argument to the redirect macro must be in general form of TracLinks (item:id). |
340 | | |
341 | | ''Note:'' to edit a page that contains a redirect macro, you must type its URL directly into your browser's location bar and append the string '?edit=true' to it. |
342 | | |
343 | | ''Version:'' >= 0.8 |
344 | | [[BR]]''By:'' Bernhard Haumacher <haui at haumacher.de> |
345 | | |
346 | | |