Upon installing the app, I am being redirected to a non-embedded version. When accessing the app from the installed apps list, the app is redirecting to the embedded version. Using Codeigniter framework and below specifying the corresponding code.
$shop = $this->input->get(‘shop’);
$redirect_uri = “https://myapp.extension.com/myapp/index.php/shopify/generate_token”;
$install_url = “https://” . $shop . “/admin/oauth/authorize?client_id=” . SHOPIFY_API_KEY . “&scope=” . SHOPIFY_SCOPES . “&redirect_uri=” . urlencode($redirect_uri);
@header(“Location:”.$install_url);