diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f435bcba1827aa0fdc3b40723bb1c661aa46d697..421f4a801f93d5418746b87e2941c4986aa2c3ed 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -44,7 +44,8 @@ const appRoutes: Routes = [ imports: [ RouterModule.forRoot( appRoutes, - { enableTracing: true } // <-- debugging purposes only + //{ enableTracing: true } // <-- debugging purposes only + { enableTracing: false } ), BrowserModule, BrowserAnimationsModule, diff --git a/src/app/services/http/http.service.ts b/src/app/services/http/http.service.ts index 30433e1712f91825189709e5d259ad16865430bb..c446be36fd287d3bc9ad999ac510bdd627c019e8 100644 --- a/src/app/services/http/http.service.ts +++ b/src/app/services/http/http.service.ts @@ -41,7 +41,10 @@ export class HttpService { url = this.concat(url, ":" + String(port)); let p = path === "/" ? "" : path; - url = this.concat(url, "/" + p); + if (url == undefined) + url = p; + else + url = this.concat(url, "/" + p); let enc = encodeURI(url);