Andrew Magerman
Andrew Magerman

Reputation: 1413

Using a Web Site Document with an XPage - how to setup correctly?

I have set up a small XPage and have until now used the full path to the Xpage for testing, i.e.

http://devsrv1.magerman.ch/Development/Schulungen/Schulungen1_0/Schulungen_(1_0)_Dev.nsf/HomeWithDataView.xsp

I then tried to apply a Web Site Document enter image description here enter image description here

But the links are no longer currently functioning. I have the feeling that I'm missing something pretty basic, and am unsure as to what the best practice is. I'm quite happy with having the original request to the hostname resolve to a full path, i.e.

input

schulungen.magerman.com

and have it resolve to

schulungen.magerman.com//Development/Schulungen/Schulungen1_0/Schulungen_(1_0)_Dev.nsf

but haven't found a way to do this elegantly.

At the moment, my relative links '/OtherXpage.xsp' fail as they try to get to schulungen.magerman.com/OtherXpage.xsp

Any pointers?

Upvotes: 3

Views: 92

Answers (2)

Knut Herrmann
Knut Herrmann

Reputation: 30960

Create a Web Site Rule. You can create it from your Web Site document in edit mode with action button " Web Site ... / Create Rule".

You can find a description how to fill the fields here.

Upvotes: 3

Fredrik Norling
Fredrik Norling

Reputation: 3484

The problem is usually that you need to add a trailing slash to the hostname http://www.xpagedeveloper.com/2013/quicktip-get-right-path-when-autolaunching-an-xpage

Upvotes: 1

Related Questions