cancel
Showing results for 
Search instead for 
Did you mean: 

To change the URL on redirection from portal

Former Member
0 Kudos

Hi,

I am using a generic App-integrator iview to enable the user to access a third party site from portal.

The url (kerberos) is of the format

http://<servername>:<portnumber>/irj/portalalias/quicklink?<DynamicParameters>;

The dynamic parameter is being provided by a custom exit.

When the user clicks on the link, the dynamic parameter gets furnished, and the user is taken to the required site, but in the address bar, the third party URL doesn't reflect i.e. the portal URL remains there throughout.

The requirement is to get the URL in the address bar to change to the third party site URL after redirection.

Any ideas on how it can be done?

Thanks,

Prerana

PS - I am pretty generous with points

Accepted Solutions (0)

Answers (4)

Answers (4)

hofmann
Active Contributor
0 Kudos

If I get this right, the URL:

http://sapportal:port/irj/portal/quicklink -> points to an AI iView (URL iFrame) that points to another server and the DynamicParameter passed to the portal should also be passed:

http://anotherserver/<DynamicParameter>;

The AI iView is configured to accept and to pass the parameters? The dynamic paramters get passed to the iView - can be checked with firebug.

br,

Tobias

Former Member
0 Kudos

Hi Prerna,

Are you making SAP BW Report iview?

If the requirement is: Open the required site on click of a link, which passes a parameter dynamically and This URL shall be displayed in the address bar?

I am not sure where is app integrator iview helpful for this?

There are ways to achieve this.

Help me understand your problem.

Regards,

Atul

Former Member
0 Kudos

Hello Prerana,

the best way would be to use the javascript, top.location.href = 'URL'.

suppose the dynamic parameter is for example: 'abcd'.

assuming that you have 'abcd' available to be appended to the URL, in the action even of the user click( upon which he/she shall be redirected to a third party website).

Step1: create a HTTP request object (not IPortalComponentRequest).

Step2: post a javascript forcing the URL to change.

Step3: Append 'abcd' to the above URL.

Step1: Write a small Abstract portal component, inside the doContent, get an http request object.

- include 'servlet.jar' to your project.

-from the IPortalComponentRequest, create the HTTP reqeuest like.... request.getServletRequest(.....).

Step2: please note that SDN thread is not allowing me to post the js here. kindly search for this particular thing(top.loation.href).

Step3: Append the dynamic parameter

Thanks,

Jakes.

Former Member
0 Kudos

Hi Steelman,

I understand from your reply, that I'll have to create the iView from this abstract portal component then.

But that can't be done, as my iview has to be an appintegrator.generic iview.

Please correct me if I misunderstand your suggested solution.

Thanks!

Former Member
0 Kudos

hi,

if you need to display redirection url in address bar, you have to call link from hyper link. in you case since you need to pass some parameter, this wont be a solution.

You can do one thing. in you third party site, you can write a script to set windows.location on page load. so it will replace portal url with third party system url.

Regards

baby

TusharShinde
Active Participant
0 Kudos

Hi,

Check if this Thread helps to solve your problem...

Check this link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152...

Regards

Tushar Shinde

Former Member
0 Kudos

Hi Tushar,

Thanks for your reply, but I have already checked these links.

I am not sure on how modifying index.html can help with this. Could you please throw some light on it?

Thanks!