Skip to content

Redirects to another website. The URL can be defined either in the modeler or read from the current object in a dataview.

License

Notifications You must be signed in to change notification settings

mbyregowMx/URLRedirector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URLRedirector

Description

This widget enables you to redirect to a URL.

Contributing

For more information on contributing to this repository visit [Contributing to a GitHub repository] (https://world.mendix.com/display/howto50/Contributing+to+a+GitHub+repository)

Typical usage scenario

Redirect to a static url or a URL stored as a value in an object.

Features and limitations

  • Open redirect URL in a new browser window or in the current window
  • Combine prefix URL with a dynamic URL part

Installation

Import the widget to your project and add the widget to a dataview on a page. Configure the properties to determine how the widget will behave in your application.

Properties

General
Data source
  • URL(prefix) - URL to redirect to. (E.g. http://www.mendix.com)
  • URL Attribute - Attribute containing a URL value to redirect to. (E.g. http://www.mendix.com, you could also combine with the prefix value and add the value '/learn' to it)
  • Target - Window where the redirect URL should be opened

Troubleshooting

URLRedirector may not work on iOS in Phonegap, due to security policies. This issue, and the fix, was reported here:

Add this to your config.xml:

<gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.3.2" />
<allow-navigation href="https://someurl.mendixcloud.com/*" />

Make sure the HREF points to your deployment url

About

Redirects to another website. The URL can be defined either in the modeler or read from the current object in a dataview.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Makefile 2.5%