fix card URLs with no viewid (#1571)
* fix card URLs with no viewid * revert ServerRoot change
This commit is contained in:
parent
845b40be84
commit
d49a802c3c
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue