Sometimes, in our AppGini applications we'd like to share data with co-workers or other users by sending a link via email, for example. Unfortunately, this does not work as expected, by default.
By default, if we are not logged in already, AppGini redirects us to the login-page first, then to the homepage (
index.php) after login.
This means the user will not see the requested page unless he/she clicks the link again (or copies the url into the browser's address bar).
But this is not what we want at all. We'd like to redirect the user to the requested page after login, not to the homepage.
What we want is, when the recipient clicks the link, his/her browser should open up and show the shared page after login.
Please note that this is BETA for testing purposes. Please provide feedback if this works for you or not.
We have done all the hard work for you and provide a simple solution:
<!-- file: hooks/header-extras.php --> <script> var common = new AppGiniCommon(); common.autoRedirect(); </script>
That's all you have to do. Just call the
autoRedirect() function on the AppGiniCommon object. Our library will do the rest.
Wanna see it in action?
This integrates nicely with QR-Codes
New version with custom blacklist option and another option for copying required files without compressing.
When "Compress" is checked, this is the already known zip-compression: Necessary files will be compressed and stored as zip-file in a subdirectory of
If you unckeck "compress", the required files will just be copied "as is" into a new subdirectory of
.release. This option can be helpful for FTP upload of project files.
Now you can add custom folders and search-patterns. Folders/Files matching the blacklist will be excluded.
There is a display bug for the add-/view- buttons next to dropdowns when applying
field.dropdown().fix() on fields placed in tabs.
The reason is that select2 dropdown container returns height = 0 in certain scenarios when applying the fix.
Additionally there is an inheited
css style for
overflow-x which may hide the add-/view- buttons in certain sizing-scenarios.
This bug will be fixed in next version which will be released probably in July 2020. We are sorry for any inconvenience!