Redirect to URL placing environment name and app name before
Question
Application Type
Reactive

Hello. I have a table, this table has a link to open a URL in another tab... lets say i have the url to be "www.google.pt".
when i redirect, it goes to myenv/appname/www.google.pt
How can i change that?

All help is appreciated! :)

Solution

Hello @Ricardo Filipe Melo Figueiredo 

You just need to add "https://" before the "www.google.com" in your example.

For e.g. "https://www.google.com" will work when you redirect the url.

Reference: https://www.outsystems.com/forums/discussion/56889/why-when-i-use-externalurl-it-add-the-module-name-before-the-given-url/ 

Regards,

AJ

I didnt knew this behaviour before. But this made it! Thanks :)

mvp_badge
MVP

Hi Ricardo,

Can you share a screenshot of your current flow and the details of the RedirectToURL node?

Regards,

Nordin

Hi @Ricardo Filipe Melo Figueiredo,

You can use JavaScript into your onclick action to open URL in the new tab

window.open("https://www.google.pt");


or you have to apply target to your link. like below

Thanks, Aadhavan S

I am doing the second one, but not going into google though, it places envname/appname before the www.google.pt

It seems there is an issue with your condition in URL

Can you paste full value of the url or attach your oml to understand the issue.

Seems i had to place "https://" before.. Thanks anyway! :) 

Solution

Hello @Ricardo Filipe Melo Figueiredo 

You just need to add "https://" before the "www.google.com" in your example.

For e.g. "https://www.google.com" will work when you redirect the url.

Reference: https://www.outsystems.com/forums/discussion/56889/why-when-i-use-externalurl-it-add-the-module-name-before-the-given-url/ 

Regards,

AJ

I didnt knew this behaviour before. But this made it! Thanks :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.