Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

RouteData error when Base Path is specified #229

Closed
rlauriston opened this issue May 31, 2018 · 11 comments
Closed

RouteData error when Base Path is specified #229

rlauriston opened this issue May 31, 2018 · 11 comments
Assignees
Labels

Comments

@rlauriston
Copy link

app-mgmt

The developer thinks that looks like this bug:

react-static/react-static#567

@marbemac
Copy link
Contributor

marbemac commented Jun 3, 2018

Hi Robert! Happy to help - looks like you might be doing some custom stuff with the downloadable static build.

  1. Is the route you are loading above meant to be the homepage of your docs? If so, does that mean /webui/onlinedocs/apis/ap-mgmt should effectively be the docs basePath, upon which the rest of the docs routes append to?
  2. Are all routes broken, or just that one?
  3. Could you email your zipped up docs (what you get from the download link in Stoplight) to support@stoplight.io?
  4. Any additional info you can provide about how you are embedding the docs would be helpful as well!

@lottamus to investigate first thing tomorrow - if we can't figure it out in the first few hours I would suggest we setup a quick call to work through it.

@rlauriston
Copy link
Author

  1. Right, /webui/onlinedocs/apis/app-mgmt is the base path I set in Publish > Advanced > Base Path.
  2. I don't know. How would we test that?
  3. Done.
  4. Striim is a server platform that's installed on customers' premises or in private VMs in AWS / Azure / whatever. I'll ask the developer to post exact details of what web server they're using.

@marbemac
Copy link
Contributor

marbemac commented Jun 3, 2018

Great thanks. Re 2, we'll do some initial testing for you using the built docs you sent over. Will followup with more questions if needed.

@marcinStriim
Copy link

Hello
We use Jetty to host it.

@lottamus
Copy link
Contributor

lottamus commented Jun 4, 2018

You don't need to load the route with /index.html in the pathname. We are using React so once the JavaScript loads it will fetch a JSON file keyed by the pathname which contains data to render the page. If that file fails it should display a 404 page, but it looks like its just displaying a blank screen in this case.

Can you try loading just /webui/onlinedocs/apis/app-mgmt/? This is working on my end.

image

I will create a new issue for the blank 404 page

@marcinStriim
Copy link

Hi @lottamus
It worked!
It looks like the problem was easier than I expected.

Thanks a lot for your help.

@rlauriston
Copy link
Author

Thanks for the quick assistance, we're shipping tonight.
Maybe redirect /index.html to ?

@marbemac
Copy link
Contributor

marbemac commented Jun 4, 2018

A redirect might not be a bad idea. Either way @lottamus is creating some docs on how to embed the downloaded build in an existing app, and how to embed via a reverse proxy to a hosted docs instance. We'll make sure add a note about the index.html issue.

@rowa97
Copy link

rowa97 commented Jun 6, 2018

The documentation for Embedding your Hub is live! https://docs.stoplight.io/documentation/Embed-your-Hub

@marbemac
Copy link
Contributor

marbemac commented Jun 6, 2018 via email

@lottamus
Copy link
Contributor

Closing this in favor of #233

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants