Skip to content

Commit 74cd812

Browse files
author
Ronny Birkeli
committed
Add trailing slash to base url to fix issue with app part being removed.
1 parent ef345da commit 74cd812

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ private static void AddEventServices(IServiceCollection services)
174174
{
175175
services.AddHttpClient<IEventsSubscription, EventsSubscriptionClient>();
176176
}
177-
178177
}
179178

180179
private static void AddPdfServices(IServiceCollection services)

src/Altinn.App.Core/Infrastructure/Clients/Events/EventsSubscriptionClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public EventsSubscriptionClient(
4949
/// <returns>The created <see cref="Subscription"/></returns>
5050
public async Task<Subscription> AddSubscription(string org, string app, string eventType)
5151
{
52-
var appBaseUrl = $"https://{org}.apps.{_generalSettings.HostName}/{org}/{app}";
52+
var appBaseUrl = $"https://{org}.apps.{_generalSettings.HostName}/{org}/{app}/";
5353

5454
var subscriptionRequest = new SubscriptionRequest()
5555
{

0 commit comments

Comments
 (0)