fix card URLs with no viewid (#1571)

* fix card URLs with no viewid

* revert ServerRoot change
This commit is contained in:
Doug Lauder 2021-10-15 14:23:35 -04:00 committed by GitHub
parent 845b40be84
commit d49a802c3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ func (p *Plugin) OnActivate() error {
p.wsPluginAdapter = ws.NewPluginAdapter(p.API, auth.New(cfg, db))
mentionsBackend, err := createMentionsNotifyBackend(client, cfg.ServerRoot, logger)
mentionsBackend, err := createMentionsNotifyBackend(client, baseURL+"/boards", logger)
if err != nil {
return fmt.Errorf("error creating mentions notifications backend: %w", err)
}

View file

@ -92,7 +92,7 @@ const BoardPage = (props: Props): JSX.Element => {
// Backward compatibility end
const boardId = match.params.boardId
const viewId = match.params.viewId
const viewId = match.params.viewId === '0' ? '' : match.params.viewId
if (!boardId) {
// Load last viewed boardView