Links in Text files will open 2x

When i create text file with a link, its will open 2x. In a new tab and also without.

It is a bug?

I see this is a share link, do you also have the issue if you are editing in the original file while logged in in Nextcloud?

Hi @JoHn12,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to help you! Thanks.

Nextcloud version (eg, 20.0.5): 24.0.7
Operating system and version (eg, Ubuntu 20.04): Debian 10.13
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.4): 7.4.33

The issue you are facing: Markdown Text Editor http Link

Is this the first time you’ve seen this error? No

Steps to replicate it: Create text file,add link, share the file, click the URL in the text file

The output of your Nextcloud log in Admin > Logging:

Level	App	Message		Time
Info	updater	\OC\Updater::resetLogLevel: Reset log level to Warning(2)	
2022-11-16T11:43:22+0100
Info	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode	
2022-11-16T11:43:22+0100
Info	updater	\OC\Updater::updateEnd: Update successful	
2022-11-16T11:43:22+0100
Info	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check	
2022-11-16T11:43:22+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "tasks.page.index" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "photos.page.index" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "files.view.index" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "files.view.index" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "deck.page.index" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "dashboard.dashboard.index" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "activity.Activities.showList" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.password_policy.API.validate" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.password_policy.API.generate" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "cloud_federation_api.RequestHandler.addShare" as such route does not exist.	
2022-11-16T11:43:17+0100
Info	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Add token cleanup job	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Add background job to set the lookup server share state for users	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Repair DAV shares	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Queue a one-time job to check for user uploaded certificates	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Add job to cleanup the bruteforce entries	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Remove old dashboard app config data	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Check encryption key format	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Keep legacy encryption enabled	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Reset generated avatar flag	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Clear access cache of projects	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::info: Repair info: No need to remove link shares.	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::info: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Remove potentially over exposing share links	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Add background job to cleanup login flow v2 tokens	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Cleanup invalid photocache files for carddav	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Queue a one-time job to cleanup old backups of the updater	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Add preview background cleanup job	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::step: Repair step: Clear every generated avatar on major updates	
2022-11-16T11:43:17+0100
Info	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-11-16T11:43:17+0100
Info	updater	\OC\Repair::info: Repair info: JS cache cleared

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '+++++++',
  'secret' => '++++++',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'nextcloud.+.de',
  ),
  'datadirectory' => '/var/www/vhosts/+.de/.nextcloud/data/+++++',
  'dbtype' => 'mysql',
  'version' => '24.0.7.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => '++++++',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '+++++',
  'dbpassword' => '+++++',
  'installed' => true,
  'instanceid' => '+++++',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'mindmap_app',
    1 => 'occweb',
    2 => 'files_trackdownloads',
  ),
  'mail_domain' => '+++++',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'info',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '+++++',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '587',
  'mail_smtpname' => '++++',
  'mail_smtppassword' => '+++++',
  'mail_smtpsecure' => 'tls',
  'memcache.distributed' => '\\OC\\Memcache\\APCu',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'GB',
  'default_locale' => 'en_US',
  'updater.secret' => '++++++',
);

The output of your Apache/nginx/system log in /var/log/____:

(32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
20788#0: *31382 upstream prematurely closed connection while sending to client
(104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
(70007)The timeout specified has expired: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


{"reqId":"Y+","level":2,"time":"2021-09-27T06:33:47+00:00","remoteAddr":"+","user":"--","app":"OC\\Log\\Rotate","method":"GET","url":"/cron.php","message":"Log file \"/var/www/vhosts/+.de/.nextcloud/data/+/nextcloud.log\" was over 104857600 bytes, moved to \"/var/www/vhosts/+.de/.nextcloud/data/+/nextcloud.log.1\"","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0","version":"21.0.4.1"}
{"reqId":"+","level":3,"time":"2021-09-27T06:33:49+00:00","remoteAddr":"+","user":"+","app":"PHP","method":"GET","url":"/index.php/core/preview?fileId=47196&x=32&y=32","message":{"Exception":"Error","Message":"file_exists(): open_basedir restriction in effect. File(/appinfo/routes.php) is not within the allowed path(s): (/var/www/vhosts/+.de/:/tmp/) at /var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php#135","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php","line":135,"function":"file_exists"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php","line":259,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php","line":294,"function":"findMatchingRoute","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0","version":"21.0.4.1"}
{"reqId":"+","level":3,"time":"2021-09-27T06:33:50+00:00","remoteAddr":"+","user":"adminarftcyhcqis","app":"PHP","method":"GET","url":"/index.php/core/preview?fileId=14501&x=32&y=32","message":{"Exception":"Error","Message":"file_exists(): open_basedir restriction in effect. File(/appinfo/routes.php) is not within the allowed path(s): (/var/www/vhosts/+.de/:/tmp/) at /var/www/vhosts/++de/nextcloud.+.de/lib/private/Route/Router.php#135","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php","line":135,"function":"file_exists"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php","line":259,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Route/Router.php","line":294,"function":"findMatchingRoute","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/+.de/nextcloud.+.de/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/vhosts/+.de/nextcloud.+.de/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0","version":"21.0.4.1"}

No. Only in shared link.

now i get more issues in latest version 25.0.1.

I am not more able to copy shared link.

The issues comes because i have these issues?

here are some warnings regarding your setup.

  • The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running “occ db:add-missing-indices” those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.
    • Missing index “direct_edit_timestamp” in table “oc_direct_edit”.
    • Missing index “preferences_app_key” in table “oc_preferences”.
    • Missing index “mounts_class_index” in table “oc_mounts”.
  • Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running “occ db:convert-filecache-bigint” those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this :arrow_upper_right:.
    • file_metadata.id

Please double check the installation guides :arrow_upper_right:, and check for any errors or warnings in the log.

Check the security of your Nextcloud over our security scan :arrow_upper_right:.

Or its because failed upgrade?

i have installed new on second domain and i get same errors. The bug exist in the core i think.

Tested with Firefox and Opera on Linux. Latest version.