nextcloud / nextcloud/external

Reinterpret nextcloud internal links

Open
#285 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
132
Forks
43
Avg merge
15m
Merged PRs (30d)
2

Description

ENHANCEMENT

It'd be nice if the app detected links to the same nextcloud instance: i.e. to a file or directory https://yourservercloud.tld/f/00000000 or to any other subdirectory (essentiallyNEXTCLOUDURL/.*) and redirected to them instead of embedding the result.

Actual behaviour

If an embedded website contains such a link and the user accesses it, there'll be a child Nextcloud GUI instance inside the parent Nextcloud instance, which is confusing, makes little sense and can be repeated indefinitely.

Expected behaviour

Any link inside the iframe which targets the current nextcloud instance causes the parent website to redirect to that URL.

Usage case in which

Embedding the URL of an app running on a subdomain which saves its files inside a nextcloud-shared directory and has a link to the share to find it easier. External, private apps which use nextcloud as a backend.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the JavaScript entry point that embeds the external site and handles iframe navigation. Reproduce the nested Nextcloud link case described in the issue, then verify that links matching the current Nextcloud URL redirect the parent rather than embedding another instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.