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

bradezone’s picture

Indeed, this is not optimal.

bradezone’s picture

Just 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.

psynaptic’s picture

Status: Active » Postponed

I 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.

psynaptic’s picture

Title: #nodeXX anchor always appended to redirect url » Make anchor fragment optional
Category: support » feature