Compose links in nodebb won't work when opened in a separate tab

Open
#277 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
web-dev

Research direction

Start by reproducing the /compose URL in a new browser tab and compare it with the working reply-link flow. Trace how the composer route and its view are registered, using the reported missing compose view error as the starting point. Done means opening /compose directly no longer produces the Internal Error.

Written by the indexing model from the issue text.

Description

I'm writing a greasemonkey script to provide simple keyboard navigation functions in a nodebb istance that uses this composer and as a consquence has disabled nodebb's keyboard shortcuts.

Most of it works fine but I cannot use the /compose-URI in a function for window.replace() and / or window.location.href() which results in the following error when called or pasted into a new browser tab:

Internal Error.
Oops! Looks like something went wrong!

/compose

Failed to lookup view "compose" in views directory "/usr/src/app/build/public/templates"

However physically clicking on the "reply" link in the forum pages works fine.

I wonder if this is a bug or a feature?

Thanks & all the best,

Uwe

Dominant language
JavaScript
Stars
19
Forks
14
Avg merge
1m
Merged PRs (30d)
8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NodeBB/nodebb-plugin-composer-quill

All issues in NodeBB/nodebb-plugin-composer-quill

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.