-
Notifications
You must be signed in to change notification settings - Fork 67
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 URL (non-Pretty) in digest mail #1617
Comments
PS: I am not sure if this is not a server core issue, at least I could not find any information in the docs saying you can not rely on URL Generator when running from background jobs. |
@sorbaugh @nickvergessen could you check whether this is an issue in Activity or Server? It causes for example this issue in Forms: |
I think this could be a deeper problem in the URL generator, maybe @come-nc knows if I am right here: If you are on an Apache server with |
Or even the symfony router below. Becomes a bit visible by the handling in |
But all that being said, URLs with index.php should still work. At least they work for any other app, |
Not sure if that is due to the desktop client with talk, but /~https://github.com/nextcloud/spreed/blob/main/src/router/router.js#L20-L33 looks fairly more complicated then /~https://github.com/nextcloud/forms/blob/main/src/router.js#L21 PS Since it's only applied in |
Steps to reproduce
index.php
(mod rewrite)Expected behaviour
Absolute URL used in email is using correct server address without the
index.php
.Actual behaviour
Message contains the
index.php
.Other
I checked everything - the URL generate correctly generates the link when used from the webui (e.g. in the notifications app).
But not when sending the digest mail.
I guess the problem is that a background job is sending it, the background job is called by the cron.php which is not using a real request thus the environment for removing the
index.php
(front_controller_active
) is not set.So when calling the Activity Provider within that context the generated URL will always include the
index.php
which - depending on the server configuration can be invalid and lead to 404 error.The text was updated successfully, but these errors were encountered: