Skip to content

Commit

Permalink
Fixing named server trailing slash issue and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyrla committed Feb 10, 2025
1 parent c437258 commit 91cff10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/collaboration/src/sharedlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export async function showSharedLinkDialog({
if (canCreateShare) {
const serverName = PageConfig.getOption('baseUrl').split(
PageConfig.getOption('hubUser')
)[1];
let readableServerName = serverName.replace(/\/$/, '');
)[1].replace(/\//g, '');
let readableServerName = serverName;
if (readableServerName === '') {
readableServerName = 'default';
}
Expand Down Expand Up @@ -390,7 +390,7 @@ class ManageSharesBody extends Widget implements Dialog.IBodyWidget {
const headerRow = document.createElement('tr');
headerRow.innerHTML = `
<th>${this._trans.__('Shared with')}</th>
<th>${this._trans.__('Shared Since')}</th>
<th>${this._trans.__('Shared since')}</th>
<th>${this._trans.__('Actions')}</th>
`;
table.appendChild(headerRow);
Expand Down

0 comments on commit 91cff10

Please sign in to comment.