cancel
Showing results for 
Search instead for 
Did you mean: 

Any Page is accesed bypassing the default page

Former Member
0 Kudos

Hi all,

We have developed a stateless BSP application and everything is fine except one thing-

The user can access any page as "http://<host:port>.../BSP_APPname/page.htm".

So far what we have implemented is we are passing an arguement in querystring when navigating in BSP application, like :-

navigation->goto_page (

'http://<host:port>../BSPapplication/page1.htm?on=1' ).

Is there any other way to enforce that only start page is displayed.

Thanks,

KS

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

using javascript and document.referrer you can check from which page the user has come and if its balnk or not the default page you can redirect him to default page.

the code shoule be something like below.

<script language="javascript" type="text/javascript">

if (document.referrer != '<default page url>')

document.location.href = <deaful page url>;

</script>

REgards

Raja

Former Member
0 Kudos

Thanks Raja.

I would now apply the solution to see if it works.

Thanks,

KS