Optie "Bekijk query in Data Explorer" bij het verzenden van Data Explorer-queries via PM werkt niet voor Discourse-submapinstallaties

AI-generated summary

The “View query in Data Explorer” link in PMs sent via Discourse Automation was broken for subfolder installations, as it didn’t include the full URL. jordan-violet reported the issue, and davidb addressed it by updating the link generation to include the full URL in a commit e4f8d39. After initial testing, jordan-violet confirmed the fix didn’t yet work, prompting davidb to deploy the latest changes. Following retesting, jordan-violet confirmed the link now works correctly, and davidb acknowledged the resolution. The fix ensures PMs sent via automation include properly formatted URLs for subfolder installs.

When you use Discourse Automation to send a data query as a PM, there is a link at the bottom of the query to “View query in Data Explorer”. Unfortunately this link doesn’t take into account a subfolder installation, and fails to load properly.

2 likes

Thanks for the report, we’ll get to this soon.

2 likes

Hi Jordan, thank you for reporting this. I’ve updated the link to include the full url.

Can you confirm that this corrects the issue?

Updated with the following commit:
https://github.com/discourse/discourse-data-explorer/commit/e4f8d3924a18b303c2bb7da9472cf0c060060e4e

1 like

I’ve tried running a new automation to PM myself a data explorer query.

Unfortunately the link at the bottom still doesn’t take the sub folder into account.

2 likes

I’ve deployed the latest changes now which should correct this.

Any new PM’s that are sent via the automation script should include the full url.

Can you check again and confirm if this is now working correctly?

It works :slight_smile:

1 like

Ok great, glad to hear that this fixes the issue :+1:

1 like