This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jan 22, 2014, 4:31 PM
1 Posts

URL redirection / Links

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
Hi,
 
I'm new to this and am trying to configure my XPages website.
 
I'm running into the below URL problem and hope someone will be able to help me out.
 
The main URL of my XPages database is for example:
 
http://myweb.web1.nl/local/mydb.nsf/Index.xsp?action=openDocument
 
In Lotus Domino, I created the following URL Redirection:
 
Incoming URL path: /manual/*
Redirection URL string: /local/mydb.nsf/*
 
In the Browser, when I enter:
 
http://myweb.web1.nl/manual
 
then that will open my XPages database, while 'http://myweb.web1.nl/manual' is shown as the URL address in the browser. This is what I would like to happen, so no problem until here.
 
But, when I now click any link on my homepage/database, then the URL will for example change to:
 
http://myweb.web1.nl/local/mydb.nsf/documents.xsp?content=docs_view_ASSETS
 
while I want it to be:
 
http://myweb.web1.nl/manual/documents.xsp?content=docs_view_ASSETS
 
So, 'manual' is being replaced by 'local/mydb.nsf'.
 
Does anybody know how and where I can set that 'http://myweb.web1.nl/manual' should always be used instead of 'local/mydb.nsf'?
 
Much appreciated.
 
Roger.
 
Jan 22, 2014, 5:32 PM
47 Posts
Generated URLs?

Roger,

how are the URLs in your application being generated?  The Views or embedded elements showing doclinks will use the full path.  You will have to compute the URLs yourself with something like:

"http://" + @Lowercase(SERVER_NAME) + "/manual/xxxx"

 

Jan 22, 2014, 8:17 PM
19 Posts
Do you want a redirect or a substitution?

It looks like the redirect is doing exactly what you're telling it -- any string matching /manual/* should instead go to -- and display the URL for -- /local/mydb.nsf/*. You'd use a redirect when something gets moved and you need to get the user to the new place.

I think maybe you want /local/mydb.nsf/ to be the database "underneath" but have the displayed URL show /manual? We have less experience with these vs. redirects, but you could try changing this from a redirect to a substitution. The substitution displays a different URL in the browser bar from what the actual page is.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal