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

Support virtual path deployment #4101

Merged
merged 5 commits into from
Jun 2, 2020
Merged

Conversation

realLiangshiwei
Copy link
Member

Resolve #4089

@maliming maliming marked this pull request as draft May 28, 2020 09:33
@realLiangshiwei realLiangshiwei marked this pull request as ready for review May 28, 2020 15:14
@maliming
Copy link
Member

For angular developers can refer to this article: http://codebuckets.com/2018/05/26/hosting-angular-in-iis-under-an-existing-website/

@realLiangshiwei realLiangshiwei force-pushed the liangshiwei/support-virtualpath branch from dfdb306 to 80ba3c9 Compare May 29, 2020 14:21
@hikalkan
Copy link
Member

By angular developers, do you mean @mehmet-erim & @armanozak 😄

@maliming
Copy link
Member

maliming commented Jun 1, 2020

I mean for those developers who deploy angular in IIS sub-applications. They can refer to the above article to solve the problem.

@realLiangshiwei
Copy link
Member Author

realLiangshiwei commented Jun 1, 2020

I added AbpApplicationPathViewComponent used to set abp.appPath value, but it is not added to the startup template by default.
For developers who deploy using virtual paths, please add the following code to your module:

Configure<AbpLayoutHookOptions>(options =>
{
        options.Add(LayoutHooks.Head.Last,
        typeof(AbpApplicationPathViewComponent));
});

It uses layout hooks to add scripts to the end of head :

<script type="text/javascript">
   var abp = abp || {}; abp.appPath = '<your virtual path>';
</script>

@maliming maliming requested a review from hikalkan June 1, 2020 07:05
@hikalkan hikalkan merged commit 6a892bf into dev Jun 2, 2020
@realLiangshiwei realLiangshiwei deleted the liangshiwei/support-virtualpath branch June 2, 2020 13:55
@hanntd
Copy link

hanntd commented Jan 29, 2023

Was this issue fixed for the latest abp framework version (7.0.1)? I'm using this version and having this issue when deploying to IIS as virtual application.

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

Successfully merging this pull request may close these issues.

Support virtual path deployment
4 participants