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.
Say I have chosen to use "message:some message here" as the result of submitting a webform, then when the form has submitted I am redirected to the same page with the #nodeXX anchor appended to the url which means that unless my design allows for the messages div to show next to my form the user won't see it because the browser has scrolled past it.
So, is there any way of removing or altering the anchor part of the redirect url?
Comments
Comment #1
bradezone CreditAttribution: bradezone commentedIndeed, this is not optimal.
Comment #2
bradezone CreditAttribution: bradezone commentedJust found out this happens even when you use "internal:" instead of "message:" to send them to another page. This is unfortunate because it's a great module, but why on earth is that pesky anchor tag being added to the redirect URL's?? I can't imagine many people find that desirable.
Comment #3
psynaptic CreditAttribution: psynaptic commentedI have removed the anchor for now. I am intending to use preprocess_node to add it and want messages to be output inline with the form (in the node). When I add this option back I will make it optional.
Comment #4
psynaptic CreditAttribution: psynaptic commented