Share a Competition or Team Link

Every public profile in 4league — a competition, a team, a player, a friends group or an organization — has a Share button in its header. Tap it and 4league hands the recipient a link that opens the native app if they have it installed, or a public web page if they don't. This guide covers where the button is, who can use it, and the two URL forms 4league uses behind it.

ℹ️
Anyone can share — as long as the profile is public

The Share button is not organizer-only. Any role — fan, player, team manager, referee or organizer — sees it on a profile they can view. The single gate is visibility: a private competition (visibility set to hidden) has no Share button at all, because there is no public page to send anyone to.

Where the Share Button Lives

The button sits in the profile header — the banner area at the top of a competition, team, player, group or organization profile — next to Follow and (for owners) Edit. It is rendered by the shared header component, so it looks and behaves the same across every profile type.

It appears whenever both of these hold:

  • The profile is not private — internally, its visibility is anything other than 0.
  • The screen hasn't explicitly suppressed it (a few embedded/preview contexts hide it on purpose).

Two Kinds of Link

4league uses two live, intentional URL forms for the same destination. They differ in how clean they look and where they come from — but both ultimately open the native app when it's installed.

1. The clean public URL (Universal / App Link)

This is the tidy, human-readable address served by 4league's public-web renderer, for example:

Competition https://4league.app/competition/<id>/matches
Team https://4league.app/team/<id>

These are real, indexable public web pages and at the same time Universal Links (iOS) / App Links (Android): opening one on a device with 4league installed launches straight into the matching in-app screen; without the app, the same URL shows the public web page. Use this form when you want a clean link in a website, email signature, or social bio.

📚
The full URL map lives in one place

The complete, authoritative list of clean public URLs for every profile type and tab is documented once, in View the Public Web Profile. We deliberately don't repeat the whole table here, so there's a single page to update if a URL ever changes.

This is what the in-app Share button actually generates. It's a short, type-tagged link that points at a small OS-detection redirect page:

Examplep value
https://4league.app/app.html?p=c&i=<id> c = competition
https://4league.app/app.html?p=t&i=<id> t = team
…and p=p player, p=o organization, p=g group.

When opened, app.html detects the visitor's OS and routes them onward — into the installed app, to the right app store, or to the web. The i parameter carries the profile's id. You don't build these by hand; the Share button assembles them from the app's configured origin (https://4league.app/).

ℹ️
Both forms are fine to send

The clean URL is nicer to read and better for SEO; the app.html link is what the in-app button produces and is rock-solid at getting people into the app across platforms. Recipients end up in the same place either way.

What Happens When You Tap Share

The button builds the link plus a short localized message (e.g. an invite to follow the competition), then hands off to the platform's native sharing — but the exact mechanism differs:

PlatformWhat happens
iOS / Android Opens the native OS share sheet with the message and link — pick any installed app (WhatsApp, Messages, email, etc.).
Web Tries the browser's Web Share dialog first. If the browser doesn't support it, 4league copies the link to the clipboard and shows a "Link copied" toast so you can paste it anywhere.

If you open the share sheet and then dismiss it without choosing anything, nothing happens — that's a normal cancel, not an error.

Private Profiles Can't Be Shared

There is intentionally no way to share a private competition. If you've set a competition's visibility to hidden, the Share button disappears for everyone, including you — a private competition has no public web page, so any link would be a dead end. Make the competition public again to bring the Share button back.

📚
Related guides

See View the Public Web Profile for the full URL reference and what visitors without the app see, Generate a Matchday Poster for shareable graphics (and the automatic link-preview images), and the Competition Profile overview for the header where the Share button lives.