We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad5455 commit eee6488Copy full SHA for eee6488
lib/models/account-template.js
@@ -85,9 +85,17 @@ class AccountTemplate {
85
* @return {Object}
86
*/
87
static templateSubstitutionsFor (userAccount) {
88
+ let realWebId
89
+ // this means the user's webId and server Uri are the same
90
+ // therefore, we use a relative address
91
+ if (userAccount.webId.indexOf(this.hostname) > -1) {
92
+ realWebId = userAccount.webId.substring(userAccount.webId.indexOf(this.hostname))
93
+ } else {
94
+ realWebId = userAccount.webId
95
+ }
96
const substitutions = {
97
name: userAccount.displayName,
- webId: userAccount.webId,
98
+ webId: realWebId, // userAccount.webId,
99
email: userAccount.email,
100
idp: userAccount.idp
101
}
0 commit comments