Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPX link on iframe wrong #358

Open
AlinGheaja opened this issue Nov 18, 2024 · 0 comments
Open

IPX link on iframe wrong #358

AlinGheaja opened this issue Nov 18, 2024 · 0 comments

Comments

@AlinGheaja
Copy link

if i have a game running in iframe (cloud arcade) then ipx will generate a wrong link that points straight to game index.html file not the game page with iframe.

if i create a redirect in the index.html with this:

<script>
  // Check if the current page is being loaded directly
  if (window.top === window.self) {
    // Redirect to the correct URL
    var newUrl = window.location.href.replace('/games/', '/jocuri/');
    window.location.href = newUrl;
  }
</script>

all good with the redirect but it loses the room number on ipx
:(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant