[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a "www" folder to my app caused it to unexpectedly break #28

Open
jnolis opened this issue Mar 14, 2021 · 5 comments
Open

adding a "www" folder to my app caused it to unexpectedly break #28

jnolis opened this issue Mar 14, 2021 · 5 comments

Comments

@jnolis
Copy link
jnolis commented Mar 14, 2021

I had a POST request in my brochure app, as this blog post suggested, and it was working extremely well up until I added a "www" folder with a "site.css" file to my app. At that point the req_handlers of the post function stopped being fired off. When I deleted the folder the POST requests worked again. I'm not sure how these two parts of the code would be related but it did seem to be the case.

@ColinFay
Copy link
Owner

That's weird, I'll have a look into that and let you know!

@markwsac
Copy link

Thanks for this package. Has this issue been resolved? I'm still having the similar issue. Any plan to make this project WIP to live?

@ColinFay
Copy link
Owner
ColinFay commented Nov 9, 2021

Hey,

Sorry for getting back so late on this.

I unfortunately can't reproduce this.
Do you have a reprex you could share?
I feel like I'm not using the same structure as you.

Here is my app structure for including CSS, the POST request still works here : https://github.com/ColinFay/brochure/tree/issue-28/dev/issue-28

Note that this isn't the case either when using {golem} as CSS is bundled by the app

@jnolis
Copy link
Author
jnolis commented Nov 13, 2021

Hmm, I can recreate the error on my complex ggirl-server, but I can't in your reprex. I will not that my code doesn't have the addResourcePath call in it, and also in the tags$link command I was using just site.css not www/site.css since I think shiny normally removes that for you. I'll dig a little more to see if I can find what's different about ggirl-server.

@nvelden
Copy link
nvelden commented Jul 22, 2022

I have exactly the same issue using the golembrochure example. When sourcing a htmlTemplate(app_sys("app/example.html")). I have to add www/ to all links in example.html or none of the resources are loaded. In a normal Shiny app the www/ prefix is not required. Adding addResourcePath("www", "www") in the server does not work for me.

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

No branches or pull requests

4 participants