<a> HTML tag
How to use
You can use <a href="..." target="..."></a>
tag to open a link in a new tab, in the same tab or in the new window.
Local Pages
Local pages are any pages that are part of the Portal application.
You can use the <a>
tag to link to all local pages. For example, to link to the sportsbook
page, you can use the following code:
<a href="/sportsbook">Sportsbook</a>
Please note to never use /[language] in the URL as Portal will automatically add the language to the URL if it is necessary.
Portal will automatically navigate player within the same tab and create a new entry in browser's history stack, so that player can use a back button to navigate to the previous page.
In order to open the link in a new tab, you can use the target="_blank"
attribute. For example:
<a href="/sportsbook" target="_blank">Sportsbook</a>
Links with target="_blank"
will be opened in a new tab via window.open()
.
External Pages
External pages are any pages that are not part of the Portal application.
You can use the <a>
tag to link to any external pages. For example, to link to the external domain, you can use the following code:
<a href="https://www.example.com/">External Page</a>
External pages will be navigated via location.href
.
In case target="_blank"
is used, the link will be opened in a new tab via window.open()
.
Native App
Below are additional parameters that can be added to the URL of the href
attribute to modify behaviour of the link that opens external pages.
URL Query String Parameter |
Possible values |
Description |
openIn |
webview | browser | customTab |
|