Send more parameters to the page on conditional

I’m trying to pass a query to the next page only when a specific condition is met to avoid unnecessary URL parameters that could impact SEO.

For example, if a user searches for a specific term, I want that query to be passed to the next page when they click a link—but only if the condition is met.

What’s the best way to handle this in Bubble? Are there any recommended plugins or workflows to achieve this without affecting SEO?

I checked the conditionals on links but didn’t see an option to send additional parameters dynamically. Maybe this could be a useful feature if it’s simple to implement.

What do you mean by query? I guess you refer to URL parameters, passed to the next page via URL too.

I am no SEO expert myself, but I can’t see how passing URL parameters after a link click can affect your SEO score in any way. Otherwise, you can check the no-follow option so that the link isn’t tracked by crawlers.

Is the page you want to navigate to internal or external? i.e. a page within your Bubble app or out from it.

I want to pass a parameter to the next page using a conditional, if possible. I’ve named it “query,” but I don’t want it to appear in the page title. Unless a certain condition is met. Since this is a Rover-style website, SEO is crucial for the Bubble page I’m linking to, and the URL is already optimized for specific google searches.

Don’t know if I have completely understood you use case, but let’s see. You have two main options

  1. If navigating to an external page, i.e. using a Link element, you can dinamically populate the URL destination. Therefore, you can add key-value pairs to the URL, potentially using conditionals for that. You’ll need to build the URL in a custom state or a (var) Group. The Link’s URL automatically populates with said value and sends the user to that destination.
  2. If navigating to an internal page, i.e. using the Go to page action, you can set different version of the action, each with different parameters, and execute them based on a conditional.

You can achieve this in Bubble by using a workflow instead of a direct link. When a user clicks the link, trigger a workflow that checks if the condition is met. If it is, use the “Go to Page” action and include the query parameter. If the condition is not met, navigate to the page without the parameter.

To avoid unnecessary URL parameters for SEO, make sure you do not include empty or irrelevant query parameters. Bubble doesn’t allow adding dynamic conditions for URL parameters directly in the link element, so using a workflow is the best approach.

Is there a way to use a link instead of a text element? I ran a trial this weeked on a page and noticed that using text elements with workflow links negatively impacts my SEO in Google Search Console—I start losing my referring pages.

If you want to use a Link element, use this strategy

This topic was automatically closed after 70 days. New replies are no longer allowed.