How to set up a "human friendly" url to a Volt site?

I asked about this earlier. But didn't really find a solution.

The issues we see are problems with accessing the site when already logged in - and also access rights seem not to work if we use the "human friendly" url. All this is probably due to our attempt to set up the redirection.

So now I'll try to rephrase the question:

What is the correct way to set the std. Volt url:

http://volt.ourserver.dk/volt-apps/secure/org/app/92e85711-f100-4044-873a-e2c98ff2acf3/viewdata/index.html

to a more "human friendly" url like:

http://app1.ourserver.dk/

Thanks in advance!

/John

Hi John - the URL you have above is the direct link to the authenticated app (/secure) so it assumes it's an app that requires authentication. If you app has both anon and authenticated or just anon, it's probably best to use the general URL for the app and then it will redirect or ask the user (/landing):

https://volt.demo.com/volt-apps/landing/org/app/e9608b6c-2a73-4637-884b-1d3648ad6075/launch/index.html?form=F_Form1

Not sure if that gives you what you wanted, but that /landing is the general URL

Hmmmm...

I would like to let the user point at the "root" domain name and have the site open correctly (with the full url) - like setting "homepage" on the internet site document. In this case I could just distribute the domain name (or in this case subdomain name) and then let the internet site config "know" where that is in the volt environment...

I would also like to loose some of the "details" that are irrelevant to the user (like we do on many other web sites where we "hide" the path by using substitution rules). But I guess the simple website name is the most important

This site is only for authenticated users - but I'll assume that we will also come across the combination that you mention.

I think the only way to do that would be through the HTTP Redirect rules where something like https://app1.ourserver.dk would redirect to the full Volt URL for app 1 and https://app2.ourserver.dk would point to another application and so on.

This could get cumbersome though as the number of applications grows as you'd need a rewrite/redirect rule in your HTTP server for each application.

I could see this as an interesting Aha Idea for the idea portal where an admin could create a "friendly" URL that Volt would handle and redirect.

May I suggest to post it here?: https://domino-ideas.hcltechsw.com/?project=VOLT

Aha idea done!

I'll have a little play with the website redirect rule to see if I can make it work under the "same" subdomain. Right now I have "solved" it by redirecting to the "official" Volt url from the subdomain site - but then the user will be aware that there is another "site" which ideally they should not think about....

Right, so what I have ended up doing right now is this:

Create an internet site for e.g. "app1.myvoltserver.com" and leave the defaults there...

Create a redirection web rule where incoming url pattern is: "/homepage.nsf?Open" and redirect is to:

http://app1.myvoltserver.com/volt-apps/secure/org/app/92e85711-f100-4044-873a-e2c98ff2acf3/viewdata/index.html

This seems to be a setup that works :-)

Hmmmm.... NO, that does NOT work... It seems that running the exact same url under a different subdomain fails when the user wants to update data...!!!

Why is that? And is this working as designed....???

Just to be sure everybody understands. I have two sites pointing at the exact same server:

  • volt.myvoltserver.com
  • app1.myvoltserver.com

So using http://app1.myvoltserver.com/volt-apps/secure/org/app/92e85711-f100-4044-873a-e2c98ff2acf3/viewdata/index.html the user CANNOT save the data. But using http://volt.myvoltserver.com/volt-apps/secure/org/app/92e85711-f100-4044-873a-e2c98ff2acf3/viewdata/index.html saving data works fine....

Are you using a redirect or a rewrite? Redirect should send it to the volt.myvoltserver.com when the user goes to app1.myvoltserver.com, correct? Versus a rewrite that it stays the same in the browser

I have not been able to get a rewrite (i.e. substitution rule) to work...

Without any redirect I'm just trying to run the app using the "alias" subdomain name - rest of the url is exactly the same.... Not sure where Volt would save information about the server's domain name itself? It really doesn't make sense that you're bound to work on the same server name as you develop...

Are we overlooking something here?

In the Volt Configuration there is a setting for the base URL of the server. I assume, you cannot have your Volt apps run with urls, which don't start with the base URL configurated there.

Sounds like you're right...

Another idea: Have a simple web page with an easy url and in this page an IFrame with the Volt app.

Or have a page with a simple url which redirects to the volt app.

This way, the user would only have to enter the short url, but would see the long url afterwards.

Nice idea. Another option (over an iFrame) is to use the JS Embedding option: https://help.hcltechsw.com/domino_volt/1.0.2/ref_embedding_api.html

Yes, that is similar to what I have working now (which resembles the redirection setup above - with a slight change):

Create an internet site for e.g. "app1.myvoltserver.com" and leave the defaults there...

Create a redirection web rule where incoming url pattern is: "/homepage.nsf?Open" and redirect is to:

http://volt.myvoltserver.com/volt-apps/secure/org/app/92e85711-f100-4044-873a-e2c98ff2acf3/viewdata/index.html

Please note - redirecting to the "Volt server" name...

This works like having a simple page that redirects to the volt-app with the full url - just without the extra simple page...