-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong link to a form with responses #1771
Comments
I can confirm this, the link inside Nextcloud is correct, the link in the mail always contains index.php. However, I'm not sure, if this a bug of Forms or if this has to be fixed in the Activity app or the Server core. @jotoeri @susnux Can you tell me more about how the notifications and the link handling works? I only found this line here: forms/lib/Activity/Provider.php Line 252 in 28ed367
So this makes me wonder how there could be two different links in the web notification and in the mail... Edit: |
This is a configuration issue, the If you use Apache the Nextcloud setup will automatically add this to the .htaccess:
This will set the If you do not use Apache but rewrite your URL to not include the $config = [
// ...
'htaccess.IgnoreFrontController' => true,
// ...
]; |
@susnux I have set the correct part in .htaccess and also default in config.php and yet I can't access the form from the link inside an email because of the index.php part. As soon as I remove it from the link I get to the linked form. So I think that there must be something that doesn't work correctly. |
Are you behind a reverse proxy? |
Yes, community docker behind a traefik reverse proxy... |
Could you please check this on your instance? Just run it in the browser console:
what is the state? |
I get |
I am also on community docker currently but the only config I set there is |
So I am out of ideas, somehow your system still adds the index.php even if mod rewrite works correctly. Could you maybe apply this, set to debug log level and report the log entry? Maybe that shows which part exactly is doing wrong stuff: index e7e2a9f0e49..55755afe528 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -98,6 +98,15 @@ class Router implements IRouter {
}
$host = $request->getServerHost();
$schema = $request->getServerProtocol();
+
+ $logger->debug('Constructing router', [
+ 'root' => \OC::$WEBROOT,
+ 'base' => $baseUrl,
+ 'ignore' => $config->getSystemValue('htaccess.IgnoreFrontController', false),
+ 'env' => getenv('front_controller_active'),
+ 'host' => $host,
+ ]);
+
$this->context = new RequestContext($baseUrl, $method, $host, $schema);
// TODO cache
$this->root = $this->getCollection('root'); |
I could reproduce this, it seems this is a Core or Activity issue, ref: nextcloud/activity#1617 As a workaround you could add |
The right link to the form with the results is e.g.
https://nx4XXXXX9.your-storageshare.de/apps/forms/Q82JPnBYDCm8FktW/results
But the link in the e-Mail is:
https://nx4XXXXX9.your-storageshare.de/index.php/apps/forms/Q82JPnBYDCm8FktW/results
to the "index.php/" is the reason for the wrong link. How can this fixed?
I use the nextcloud of hetzner.com - V27.1.2 - and Forms 3.3.1
The text was updated successfully, but these errors were encountered: