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

atk4/mastercrud page parameter for relations loaded dynamically #12

Open
roelleor opened this issue Sep 18, 2018 · 0 comments
Open

atk4/mastercrud page parameter for relations loaded dynamically #12

roelleor opened this issue Sep 18, 2018 · 0 comments

Comments

@roelleor
Copy link
Contributor

in AtkWpApp.php you add page like this:

 if ($wpPageRequest = @$_REQUEST['page']) {
            $extraArgs['page'] = $wpPageRequest;
        }

However, this page agrument is missing when a relation is loaded dynamically. One solution could perhaps be the following:
in jsUrl(): check if for path in extraArgs, if its there, add page as argument. Page could be extracted from the server $_SERVER['HTTP_REFERER'], but perhaps there's a more elegant method?

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