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

Configuration is not picked up when website is run in a sub folder #167

Closed
joel-cass opened this issue Dec 5, 2017 · 2 comments
Closed

Comments

@joel-cass
Copy link

Hello,

I found an issue related to running the website in a subfolder, where configuration in config/FormEditor.config is not picked up. I think I have traced it to line 27 in configuration.cs:

var path = HostingEnvironment.MapPath(@"/config/formEditor.config");

I think the solution is to add a tilde to the path so that HostingEnvironment.MapPath(@"/config/formEditor.config") becomes HostingEnvironment.MapPath(@"~/config/formEditor.config")

Thanks

@kjac
Copy link
Owner

kjac commented Dec 7, 2017

@joel-cass I think you're right :)

I'll be putting out a patch release one of the coming days, this will be in it.

Thanks for reporting 👍

kjac pushed a commit that referenced this issue Dec 8, 2017
@kjac
Copy link
Owner

kjac commented Dec 10, 2017

@joel-cass this is fixed in v1.3.1.1

@kjac kjac closed this as completed Dec 10, 2017
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