The signup button on the front page doesn't work

Why the signup button on your front page reloads the page or leads to the wrong place, and how to fix the link in the view template.

For adminsAlso in Dansk and DeutschLast reviewed

The front page is the page crew members see when they open the link to your event. The buttons on the front page are links in the view template Frontpage. If the signup button just reloads the front page, or leads to the wrong signup, the link in the template is wrong.

How the button works

The button's link is a variable that Crewstack fills in with the address of a signup. The default front page uses {{sign_up_url}}. It always points to the signup for the default member type, whatever it is called. The default member type is the one marked Default under Member types. There is also one variable for each member type, for example {{frivillig_sign_up_url}} for the member type Frivillig. See Set up member types.

A member type's variable is made from the member type's name in the event's primary language. The name is written in lower case, spaces and symbols become hyphens, and æ, ø and å become ae, o and a. The member type Crew Øst, for example, gets the variable {{crew-ost_sign_up_url}}.

If the variable doesn't exist, the link is empty and the button just reloads the front page. This typically happens when:

  • The front page uses a member type's variable, and you renamed the member type after the front page was saved.
  • The front page was saved back when the default front page linked to {{volunteer_sign_up_url}}. That variable only works if you have a member type called Volunteer. A saved front page isn't changed automatically, so you have to fix the link yourself.
  • There is a typo in the variable.

A front page that has never been saved uses {{sign_up_url}} and works as it is.

  1. Go to Customize > View templates.
  2. Find the row Frontpage and click Default on the right of the row.
  3. Find the button in the text. The link comes after href=, for example href="{{frivillig_sign_up_url}}".
  4. Look at the list Available variables on the right. If the button should lead to the default member type, use {{sign_up_url}}. If it should lead to another member type, there is a variable ending in _sign_up_url for each member type at the bottom. Paste the variable in place of the old one.
  5. Do the same in each language tab at the top of the editor.
  6. Click Save all.
  7. Open the front page in a private browser window and click the button to test it.
The editor for the Frontpage view template with the Available variables list and the sign_up_url variables
The editor for the Frontpage view template with the Available variables list and the sign_up_url variables

You can also use the full address of the signup instead of a variable. Then the link keeps working even if you rename the member type.

  1. Go to Settings > Member types.
  2. Click Direct link on the member type's row and copy the address.
  3. Paste the address after href= in the Frontpage view template instead of the variable, for example href="https://…", and click Save all.
Member types with the Direct link window open for a member type
Member types with the Direct link window open for a member type

Check this

  • The button reloads the front page. The variable doesn't exist. Fix it as described above.
  • The button leads to the wrong signup. The variable belongs to a different member type. Check the name in the variable.
  • The button works in one language but not in another. Each language tab has its own text. Fix the link in all language tabs.
  • The button leads to a page saying signup is closed. The link works, but signup isn't open to everyone. See Crew members are stuck in the signup.

Pitfalls

  • If you rename a member type, the front page has to be fixed if it uses the member type's variable. Only the name in the event's primary language counts. If you only change the name in another language, nothing happens to the variable. {{sign_up_url}} keeps working even if you rename the default member type.
  • Changes for a member type aren't shown on the front page. Always edit the front page under Default.

Didn't find the answer? Write to support@crewstack.io.