This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.



Jun 29, 2012, 12:48 AM
32 Posts

xPage URL - why is server and file name in it? Yikes! Can I remove it?

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer,Administrator
  • Tags: url
  • Replies: 2
Hello,
 
I have the following ugly URL.
 
http://www.domain.com/web/site.nsf/Home.xsp?databaseName=CN=webserver/O=Domain!!web\documents.nsf&documentId=E0060989BE20F2B6CA2577A4AA0A269A&action=openDocument

The xPages are all in 1 database, with the data all in another database.  I can remove the databaseName section and the page still generates fine.  So why would my server think this should be added?  Eughhhhhh...
 
And to be more picky, I really do not want the action=openDocument added to the end.
 
Any thoughts?
 
 
 
Jun 29, 2012, 5:08 AM
126 Posts
Re: xPage URL - why is server and file name in it? Yikes! Can I remove it?
Not entirely sure why, but having a lot of these in the URL means that you can change a lot of functionality of the page by editing a URL param and refreshing which has been very useful to me in the past.
 
You would have to work out some of these your self but Im guessing you could remove it. All of these params have corresponding attributes on a domino doc data source. what you could do is work these out and have scoped variables set these properties and redirect to a page that doesn't have this URL.
 
Someone else asked a similar type question on stackoverflow.com, the answer is a good example of the redirect : http://stackoverflow.com/questions/11251232/redirect-to-opendocument-from-editdocument-in-xpages 
Jul 1, 2012, 11:18 PM
32 Posts
Re: xPage URL - why is server and file name in it? Yikes! Can I remove it?
Thanks Simon.  The link is useful and I will be using it.
 
I have the app sitting in the dev environment at the moment, what is interesting is that the URL is being built automatically when the xpage is called.  And the bit I obviously do not like is that the path of the app and the server name are displayed for the world to see...

This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.