Skip to content

Conversation

@juliusknorr
Copy link
Member

Found when testing #2466

Before this change there was one request for each image initiated by the prose mirror setup of the node, even before our custom image view was initialised. Since the url /apps/files/PATH/TO/IMAGE.jpg is not a valid route this always failed and got redirected to the index page.

Since we have a custom node view we can just return an empty img tag in the renderHTML function without the src to avoid that.

Screenshot 2022-06-09 at 11 35 32

Screenshot 2022-06-09 at 11 32 52

Screenshot 2022-06-09 at 11 33 53

@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Jun 9, 2022
@juliusknorr juliusknorr added this to the Nextcloud 25 milestone Jun 9, 2022
@vinicius73
Copy link
Member

/rebase

@vinicius73
Copy link
Member

/compile amend

Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@vinicius73 vinicius73 merged commit 9560edf into master Jun 30, 2022
@delete-merged-branch delete-merged-branch bot deleted the bugfix/double-load branch June 30, 2022 15:01
@max-nextcloud
Copy link
Collaborator

/backport to stable24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants