Skip to content

Update !dmde bang to use current DM.de search endpoint#375

Merged
nobodywasishere merged 1 commit intokagisearch:mainfrom
WinkelCode:main
Feb 17, 2026
Merged

Update !dmde bang to use current DM.de search endpoint#375
nobodywasishere merged 1 commit intokagisearch:mainfrom
WinkelCode:main

Conversation

@WinkelCode
Copy link
Contributor

@WinkelCode WinkelCode commented Feb 17, 2026

This PR changes the search URL pattern for !dmde from https://www.dm.de/search/468652.html?type=product&q={{{s}}} to https://www.dm.de/search?query={{{s}}} as the previous one just redirected to the website's home page.

I noticed that the !dmde bang didn't work, so I submitted a test query and noted the working URL pattern. Opening the URL: https://www.dm.de/search?query=Hello+World works as expected and the space character parsed correctly by the website.

AI use disclosure

The following prompt for GitHub Copilot Agent was used:

Search !bangs are stored in /data/bangs.json, I want to fix the one for !dmde, it's currently:

  {
    "s": "DM.DE",
    "d": "www.dm.de",
    "t": "dmde",
    "u": "https://www.dm.de/search/468652.html?type=product&q={{{s}}}",
    "c": "Shopping",
    "sc": "Online"
  },

The url should be changed to "https://www.dm.de/search?query={{{s}}}".

Edit: The website adds the: &searchProviderType=dm-products parameter to the URL when searching. I intentionally omitted it as it is added automatically when it's missing, and this offers a bit more reliability should the default search target name or pattern change.

Other options are:

&searchProviderType=pharmacy-products and &searchProviderType=content - these can be manually selected in a tab menu after submitting a search query.

Changed search URL pattern from "https://www.dm.de/search/468652.html?type=product&q={{{s}}}" to "https://www.dm.de/search?query={{{s}}}" as the previous one just redirected to the website's home page.

Co-authored-by: WinkelCode <29005772+WinkelCode@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@nobodywasishere nobodywasishere merged commit 04c587a into kagisearch:main Feb 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments