#1679 mod_invites_page: URLs to applications (desktop/web) partly broken
Reporter
citronalco
Owner
Nobody
Created
Updated
Stars
★★ (2)
Tags
Component-Community
Type-Defect
Priority-Medium
Status-NeedInfo
citronalco
on
All web pages are using relative URLs everywhere - except on the "invites" page for the "Select" button of Converse.js: Clicking the button produces a 404 if the http_path got changed do a subdirectory.
Longer description:
I'm hosting multiple XMPP domains on a single server, so I separated mod_invites' web pages with http_paths, like this:
http_paths = {
register_apps = "/foobar/register_apps";
invites_page = "/foobar.org/invites";
invites_register_web = "/foobar.org/register";
}
This works nearly perfect - except for the "Select" button of Converse.js on the web site where Dino, Gajim, etc are shown.
This are the URLs the "Select" buttons currently link to:
https://example.com/foobar/register?t=9F-J-TdP7d75MWDD&c=dinohttps://example.com/foobar/register?t=9F-J-TdP7d75MWDD&c=gajimhttps://example.com/register?t=9F-J-TdP7d75MWDD&c=converse-js
The last one misses "/foobar"
MattJ
on
So if I understand you correctly, the only problem is with the Converse.js link?
Are you using mod_conversejs for this?
citronalco
on
Yes, the problem is only with the Converse.js link.
I'm using mod_conversejs.
Zash
on
Try adding another entry in http_paths for conversejs, like
http_paths = {
-- the others
conversejs = "/foobar/conversejs";
}
Does that resolve the issue?
Changes
tags Status-NeedInfo
citronalco
on
No, this does not resolve it. Still the same.
citronalco
on
Do you need more information?
PICCORO Lenz McKAY
on
i recently have the same issue, , my conversejs module cannot load or work if i try to use with reverse proxy, only if i use directly in the plugin throught the port
i guess there's something broken in the http module, https://issues.prosody.im/1765#1765 i have a http_host nil value
PICCORO Lenz McKAY
on
ok found that conversejs assumes all the paths given are on root of the host.. maybe that is the problem.. i will try to research more..
citronalco
on
Checked with 0.12.3:
Still the same: Invite links for Dino and Gajim buttons link to the correct url, the Conversejs link is wrong.
All web pages are using relative URLs everywhere - except on the "invites" page for the "Select" button of Converse.js: Clicking the button produces a 404 if the http_path got changed do a subdirectory. Longer description: I'm hosting multiple XMPP domains on a single server, so I separated mod_invites' web pages with http_paths, like this: http_paths = { register_apps = "/foobar/register_apps"; invites_page = "/foobar.org/invites"; invites_register_web = "/foobar.org/register"; } This works nearly perfect - except for the "Select" button of Converse.js on the web site where Dino, Gajim, etc are shown. This are the URLs the "Select" buttons currently link to: https://example.com/foobar/register?t=9F-J-TdP7d75MWDD&c=dino https://example.com/foobar/register?t=9F-J-TdP7d75MWDD&c=gajim https://example.com/register?t=9F-J-TdP7d75MWDD&c=converse-js The last one misses "/foobar"
So if I understand you correctly, the only problem is with the Converse.js link? Are you using mod_conversejs for this?
Yes, the problem is only with the Converse.js link. I'm using mod_conversejs.
Try adding another entry in http_paths for conversejs, like http_paths = { -- the others conversejs = "/foobar/conversejs"; } Does that resolve the issue?
ChangesNo, this does not resolve it. Still the same.
Do you need more information?
i recently have the same issue, , my conversejs module cannot load or work if i try to use with reverse proxy, only if i use directly in the plugin throught the port i guess there's something broken in the http module, https://issues.prosody.im/1765 #1765 i have a http_host nil value
ok found that conversejs assumes all the paths given are on root of the host.. maybe that is the problem.. i will try to research more..
Checked with 0.12.3: Still the same: Invite links for Dino and Gajim buttons link to the correct url, the Conversejs link is wrong.
Reading again, I guess it's this line that is wrong: https://hg.prosody.im/prosody-modules/file/079ca766193b/mod_conversejs/mod_conversejs.lua#l155
Changes