Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Should we be able to control the base path for all of our contact forms? I'm fine with having every form build off the route (currently /contact) if need be, because we can create aliases for new forms.
But what if I need to use the route /contact for something else entirely? (basic page, redirect to third party, etc)
Comments
Comment #2
boshtian CreditAttribution: boshtian commentedI also think that we should be able to configure this.
I have a different problem than you, but also addresses the option to create custom paths. We have aliases for users (eg. user/user-alias), but when you go on contact form you get user/[user-id]/contact. I would like to retain the pattern, so the url would be user/user-alias/contact.
I can see that the path in routing is '/user/{user}/contact'. So maybe we can create this a little more flexible.
Comment #3
rpataca CreditAttribution: rpataca commentedExperiencing the same issue with personal contact forms. (same as boshtian / #2)
Pathauto takes care of the user links like /view & /edit but not /contact.
User page alias is /about/our-team/firstname-lastname
Would love to have /about/our-team/firstname-lastname/contact as the contact page alias
Comment #4
gunwald CreditAttribution: gunwald commentedI think, the fact that you can't easily change the path
/contact
to something else is a very annoying limitation in various cases. But first of all it is in invitation to all spam bots. Thanks to that path, even the simplest bot knows, how to reach my contact form.As a consequence I get dozen of spam mails every day although I have protected the form with the honeypot module.
As in my experience the best way to protect your self from spam users etc. is to change the default pathes, e. g. with the help of the "Rename Admin Paths" module, we need an option to easily change the contact form path.
On what is this very strange design decision based anyway?
Comment #5
kepesv CreditAttribution: kepesv commentedThe module shouldn't occupy the /contact path..
Visit the /contact path:
For anonymous user got 404
For admin user got 404 with message: "The contact form has not been configured. Add one or more forms ."
What does it mean? The module occupy this valuable path for nothing and I can't use the /contact path for a custom contact page.
I think this is a design flaw.
(I can't turn off the contact module beacuse we are using it for other forms (not contact forms))
Comment #7
jastraat CreditAttribution: jastraat at Technivant commentedThis is still an issue in Drupal 9.