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

Setting it up as a subsite #39

Open
beerpal243 opened this issue Sep 19, 2024 · 8 comments
Open

Setting it up as a subsite #39

beerpal243 opened this issue Sep 19, 2024 · 8 comments

Comments

@beerpal243
Copy link

Is it possible to setup the site as a subsite? The problem I'm having is that I have the main site, then I want to setup the TightWiki as a Subsite. While I was successful getting the site up and running, all the Css, js and page references are looking for the resources on the main site, not the subsite. Am I missing a setting?

Thank you

@NTDLS
Copy link
Owner

NTDLS commented Sep 20, 2024

I've not tested that, but I will get on it in the morning. Have you tried setting the setting the site URL in the configuration under admin?

I'll ensure that that setting is used to reference all site resources (like CSS and images).

@NTDLS
Copy link
Owner

NTDLS commented Sep 20, 2024

Added a pre-release that should work for you. While you should still set the site name under configuration as I mentioned above, you are correct that the sub-directory configuration was unsupported. You will need to use the prerelease 2.19.0 and alter the "BasePath" in the appsettings.json, setting it to "/yourSubFolder". Let me know if you run into any issues.

https://github.com/NTDLS/TightWiki/releases/tag/2.19.0

@NTDLS
Copy link
Owner

NTDLS commented Sep 29, 2024

@beerpal243 let me know if this works for you.

@beerpal243
Copy link
Author

Sorry for the delay... Nope, that still doesn't work. All Css, images etc are looking to the main site for the source instead of the subsite folder
image

@NTDLS
Copy link
Owner

NTDLS commented Oct 3, 2024

Are you using the pre-release and setting the base bath in the appsettings?

https://github.com/NTDLS/TightWiki/releases/tag/2.19.0

@beerpal243
Copy link
Author

Yes sir, I am.

@NTDLS
Copy link
Owner

NTDLS commented Oct 3, 2024

Wtf…. on it

@NTDLS
Copy link
Owner

NTDLS commented Oct 25, 2024

@beerpal243
Alright, I've found and fixed quite a few places that were not respecting the base path. I found that my debugger was happily serving from both the root and my sub-site, so my earlier tests were bogus. This time I tested with IIS.

If you wouldn't mind, give it another go.

https://github.com/NTDLS/TightWiki/releases/tag/2.20.0

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

2 participants