NTDLS / TightWiki

The flexible and customizable Wiki Platform written in c# using aspnet core and SQLite. Runs on Windows, Linux, and Mac with zero upfront configuration.
MIT License
18 stars 2 forks source link

Setting it up as a subsite #39

Open beerpal243 opened 2 weeks ago

beerpal243 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 1 week ago

@beerpal243 let me know if this works for you.

beerpal243 commented 5 days ago

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 commented 5 days ago

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 commented 5 days ago

Yes sir, I am.

NTDLS commented 5 days ago

Wtf…. on it