external icon indicating copy to clipboard operation
external copied to clipboard

Feature request: Allow default external route/id to be customized

Open pReya opened this issue 2 years ago • 3 comments

It would be very nice, if the default route/id inside of the external app could be customized. E.g. the App that gets loaded when you open the URL /apps/external (without any ID/parameter). It will lead you to /apps/external/1 by default.

This is necessary, because when you try to set the external app as your defaultapp in the Nextcloud config, you can't pass in any id or parameters (e.g. external/2 will not work as a value for defaultapp).

So if you want to use any of the external apps as your defaultapp, you always need to make it have id 1, which can require some manuel DB editing. Instead it would be nice if there was a checkbox/radiobox/dropdown next to the individual external sites and you could pick one to be the default route target.

I'd be happy to contribute a PR, if I get positive feedback on this feature request.

pReya avatar Apr 30 '23 07:04 pReya

Hi, how are you setting the default app? Are you using https://apps.nextcloud.com/apps/apporder? The app no longer works on Nextcloud 25+ (See https://github.com/juliushaertl/apporder). I think you will have to request this feature in https://github.com/nextcloud/server/issues/4917. The implementation should not just iterate the apps but the actual navigation entries.

provokateurin avatar Aug 21 '23 08:08 provokateurin

Hi, how are you setting the default app? Are you using https://apps.nextcloud.com/apps/apporder? The app no longer works on Nextcloud 25+ (See https://github.com/juliushaertl/apporder). I think you will have to request this feature in nextcloud/server#4917. The implementation should not just iterate the apps but the actual navigation entries.

Hey @provokateurin, I was talking about setting the default app via NC's defaultapp config parameter – this works without any Apps. It's a default feature of Nextcloud.

If you have external app installed, you can set defaultapp to external, but you can't specify WHICH external site it will load. It will always be the one that you created first inside of the external app.

To customize this, it would be nice, to pick one of the external sites as the default.

pReya avatar Aug 22 '23 14:08 pReya

Ah I see. Unfortunately that would require significant changes in the server and I don't think the amount of effort is justified. If someone wants to create a PR for this I will be happy to review it.

provokateurin avatar Aug 22 '23 14:08 provokateurin