Obtain an URL to a Web Screen

By Justin James on 1 May 2011

I desperately need a good way to get the URL to one Screen from another. There is currently no good way to do this. Basically, I need GetBookmarkableURL() to be able to work on other Screens...

J.Ja

Hy

Can't you just pass it from one screen to another through a screen parameter ?
Justin James2 May 2011
Not if you want one page to know the URL of a page that didn't send someone to it.

For example, if you want to use the "URL to PDF" extension, you need to tell Google what the URL is to the page. If you want to do this for a page other than the one you are on, you are out of luck!

J.Ja
Have you tryed the built-in Action GetEntryURL ?? That allows you to build the url if you know the page and espace where that page is in ?
Justin James2 May 2011
If I have to construct the URL I might as well just hardcode it. The whole point is to have an Action that can be called and will provide the right information, even if the app is running in a personal area or if someone else renames a page.

Basically, there are a couple of workarounds, but none of them work 100% and none of them are what I truly want.

J.Ja
Kilian Hekhuis27 Nov 2014
Just needed this when constructing a proper bread crumb bar with infinite depth. Liked!
Justin James15 Aug 2010
I really need a way to extract the URL for a Web Screen. There are too many places where using a Destination widget flatout does not work as expected, so I need something like a GetURLForWebScreen() action so that I can manually redirect the user where I need them to be.

J.Ja

Merged from 'Need a GetURLForWebScreen() Action' (idea created on 2010-08-15 20:04:05 by Justin James), on 2016-01-18 12:03:02 by Goncalo Borrega

Why does the destination widget doesn't work as expected (what would you like it to do)?

But there is something you could use as a GetURLForWebScreen() action:

The HTTPRequestHandler has an action: 'GetEntryURL()' which get the URL of an entryPoint (you can also set the input parameters).

What you must do is create a EntryPoint (to the webscreen you wanna go), in you're action call the GetEntryURL() and then use a redirectURL with the URL you've got from the action and you can send the user to the WebScreen you want.

Is this something you mean or am I really off ;).


Merged from 'Need a GetURLForWebScreen() Action' (idea created on 2010-08-15 20:04:05 by Justin James), on 2016-01-18 12:03:02 by Goncalo Borrega
Justin James17 Aug 2010
Evert -

That sounds like it will do exactly what's need. It's ugly, but it actually makes sense in a way, I am asking the user to re-enter the application.

The problem that I am working around is that the Destination widget uses a JavaScript redirection in some cases, and uses the physical server name stored in a JavaScript variable do it, instead of a relative URL or the hostname used from the request. This causes problems when the server is behind a reverse proxy/firewall/load balancer and the physical hostname is not the same as what the user needs to use to access the server.

J.Ja

Merged from 'Need a GetURLForWebScreen() Action' (idea created on 2010-08-15 20:04:05 by Justin James), on 2016-01-18 12:03:02 by Goncalo Borrega
Kilian Hekhuis27 Nov 2014
Hey Justin, you needed it so bad you created another identical idea? http://www.outsystems.com/ideas/751/obtain-an-url-to-a-web-screen

These should be merged...


Merged from 'Need a GetURLForWebScreen() Action' (idea created on 2010-08-15 20:04:05 by Justin James), on 2016-01-18 12:03:02 by Goncalo Borrega
Justin James29 Nov 2014
LOL, yeah. :D You know, at my age I and number of children I can barely remember what happened yesterday, let alone a year before...

J.Ja


Merged from 'Need a GetURLForWebScreen() Action' (idea created on 2010-08-15 20:04:05 by Justin James), on 2016-01-18 12:03:02 by Goncalo Borrega
Kilian Hekhuis1 Dec 2014
Haha, yeah, I can *so* relate to that :)

Merged from 'Need a GetURLForWebScreen() Action' (idea created on 2010-08-15 20:04:05 by Justin James), on 2016-01-18 12:03:02 by Goncalo Borrega