I need a client side javascript function that always return the path up to the .nsf that can be used in XPages. e.g http://acme.com/folder1/folder2/mydb.nsf/whatever/whatever
it would be great if I could use the function like this
function getNSFPath(){
}
how do I construct a function like this?
XPages currently doesn’t have a directory structure beyond the nsf. So it is sufficient to look for the last occurrence of / like this:
In a future release that might change, so you want to look for “.nsf” instead. However that’s not a save way either since a directory can contain “.nsf”. Also a admin could decide to mask the NSF with an URL redirection, so you better consider an architecture where you don’t depend on such a function