The mgiRedirect Tag

Tag Behavior

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).


Tag Syntax

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>

or

<mgiRedirect href="URL" redirect="Yes/No">

Required Parameters:

  • None.

Optional Parameters:

  • href="URL" where "URL" is the address of the page to which incoming http requests are redirected.
  • redirect="Yes/No" where "Yes" indicates that the visitor is redirected to the URL and "No" indicates that the user is not redirected to the URL. Values from variables, etc. can be embedded in the redirect parameter to determine the tag's function.


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.


Suggested Usage

  • Pop-up Navigation Lists
  • Outdated Links


[Return to the Referencing MGI Menu]


[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]