aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 19:45:49 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 19:45:49 +0200
commit10171cb09663e01507500e9c6a6a1622182664e4 (patch)
treeb623058962dd8a70f5dcd2a2141eda6b2278a27d /src
parent18c3a1df700c3454c0cc19103c3665bc8d731ffa (diff)
downloadDevHive-Angular-10171cb09663e01507500e9c6a6a1622182664e4.tar
DevHive-Angular-10171cb09663e01507500e9c6a6a1622182664e4.tar.gz
DevHive-Angular-10171cb09663e01507500e9c6a6a1622182664e4.zip
Fixed how sharing link gets generated in post component
Diffstat (limited to 'src')
-rw-r--r--src/app/components/post/post.component.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/components/post/post.component.ts b/src/app/components/post/post.component.ts
index fb6f262..f0d8a44 100644
--- a/src/app/components/post/post.component.ts
+++ b/src/app/components/post/post.component.ts
@@ -2,7 +2,6 @@ import { AfterViewInit, Component, ElementRef, Input, OnInit, Renderer2, ViewChi
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { Router } from '@angular/router';
import { Guid } from 'guid-typescript';
-import { AppConstants } from 'src/app/app-constants.module';
import { CloudinaryService } from 'src/app/services/cloudinary.service';
import { PostService } from 'src/app/services/post.service';
import { RatingService } from 'src/app/services/rating.service';
@@ -233,6 +232,6 @@ export class PostComponent implements OnInit, AfterViewInit {
}
getPostLink(): string {
- return AppConstants.API_POST_URL + '/' + this.paramId;
+ return location.origin + '/post/' + this.paramId;
}
}