Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Config option for setting first rendered url #13

Closed
Shumkov opened this Issue · 2 comments

2 participants

@Shumkov

In my app a have a special route (http://geometria.local:8000/prerender/) for initial rendering for preloading data.
Before 2.2.0 i use baseUrl option, but now it doesn't work.
applicationPage appends to the baseUrl for receiving HTML, and of course, http://geometria.local:8000/prerender/index.html is wrong URL.

Can you add a new option for initial prerender url?

For example:

{
   "baseUrl": "http://geometria.local:8000/",
   "initialUrl": "prerender/",
   "applicationPage": "index.html"
}  
@Stanback
Owner

Sure, sorry about breaking things in 2.2.0

Would it work if I allow applicationPage to be a full URL if you want to host your index.html page at a different location? If applicationPage isn't a full URL, the default behavior would be to append it to baseUrl.

@Shumkov

I think, it no so clearly and host in applicationPage and baseUrl always be a equal.

I am understand baseUrl as base URL, and others URI is appended to it. For example application may be placed in sub-dir of web server public dir (http://geometria.local:8000/app) and applicationPage and initialUrl (or startUrl) must be appended to it.

@Stanback Stanback closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.