The mgiRedirect Tag
The mgiRedirect tag redirects an incoming HTTP request to a specified page. Note: MGI tags are parsed in order from the top of a page to the bottom of a page, so when an mgiRedirect tag is encountered a visitor is immediately redirected to the specified page and any MGI tags located below (after) the mgiRedirect tag will not be parsed (although MGI tags encountered before the mgiRedirect tag will be parsed completely).
The mgiRedirect tag has a beginning tag with no required parameters and one optional parameter, a body, and an ending tag. When including the "href" optional parameter, the body and ending tag are not required. The tag form is:
<mgiRedirect redirect="Yes/No"> Target URL </mgiRedirect>
<mgiRedirect href="URL" redirect="Yes/No">
Example Usage and Output
<mgiRedirect> <mgiFieldContent name="PopUp"> </mgiRedirect>
In this example, the mgiRedirect tag is used in conjunction with a pop-up list and form to redirect visitors to a specific page of a web site. When a visitor selects and submits an option from the pop-up list, the mgiRedirect tag redirects him to the URL that he has selected.
[Return to the Referencing MGI Menu]
[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]