Skip to content

Commit 9d53d35

Browse files
committed
refactor(docs-service): update docs variable name with URL fixing
1 parent 4c88f97 commit 9d53d35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

frontend/app/services/docs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export default class DocsService extends Service {
1818
@service router;
1919

2020
get docsEndpoint() {
21-
return config.docsBaseUrl + this.getDocsURL;
21+
return config.docsBaseUrl + this.docsURL;
2222
}
2323

24-
get getDocsURL() {
24+
get docsURL() {
2525
return ROUTE_DOCS_MAPPING[this.router.currentRouteName] || "";
2626
}
2727
}

frontend/config/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = function (environment) {
6060
userinfoEndpoint: "/userinfo",
6161
afterLogoutUri: "/sso-login",
6262
},
63-
docsBaseUrl: process.env.DOCS_BASE_URL || "https://timed.dev/docs/",
63+
docsBaseUrl: process.env.DOCS_BASE_URL || "https://timed.dev/docs",
6464
};
6565

6666
if (process.env.SENTRY_DSN) {

frontend/tests/acceptance/docs-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ module("Acceptance | docs", function (hooks) {
2222

2323
assert.strictEqual(
2424
document.querySelector("[data-test-docs-link]").href,
25-
`${config.docsBaseUrl}tracking/activities`,
25+
`${config.docsBaseUrl}/tracking/activities`,
2626
);
2727

2828
await visit("/analysis");
2929

3030
assert.strictEqual(
3131
document.querySelector("[data-test-docs-link]").href,
32-
`${config.docsBaseUrl}analysis`,
32+
`${config.docsBaseUrl}/analysis`,
3333
);
3434
});
3535
});

0 commit comments

Comments
 (0)