Can we use the contact category ID instead of the category name?

Comments

christefano’s picture

Status: Active » Closed (fixed)

I realized my mistake and got category names with spaces working.

ramndump’s picture

how??? I am having same issue with category spaces

christefano’s picture

Sorry, I don't remember. My guess is that this module needs URL-encoded spaces. For example, format your HTML like this:

<a href="/contact?category=General%20Questions&subject=Privacy%20Statement">contact</a>

Hopefully this helps. If you'd like, you can re-open this for someone else to answer.

neclimdul’s picture

Its not the module but the browsers. on sure fire way to avoid this is to use the l() or url() functions if you can. If not, christefano is right, you should encode your urls which means at the least replacing spaces with %20.