-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Implementation of Target_Blank option to open External links in a new tab (link with External module Issue #74) #27725
Conversation
Linked to nextcloud/external#268 |
Signed-off-by: christophe canovas <[email protected]>
edb2140
to
7b1b21a
Compare
|
@@ -55,6 +55,7 @@ | |||
<?php foreach ($_['navigation'] as $entry): ?> | |||
<li data-id="<?php p($entry['id']); ?>" class="hidden" tabindex="-1"> | |||
<a href="<?php print_unescaped($entry['href']); ?>" | |||
<?php if ($entry['target']): ?> target="_blank"<?php endif; ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also set rel="noreferrer noopener"
?
@ChrisCano66 please address the review. Thanks! |
Hello,
Chris was on vacation, he will work on the project again very soon. Sincerely, Axel for the FCCL. |
Rebased and fixed in #31180 |
Fix nextcloud/external#79
** External module Issue : #74 "Open in new tab" **
** External module pull request : "Implementation of Target_Blank option to open External links in a new tab #268" **
Hi !
We are a team that contributes to the improvement and production of free software for the general public. Moreover, being a NextCloud user, we wanted to improve it and especially the External module.
Thus, we wanted to respond to Issue #74 which requires the opening of external links to a new tab.
We have therefore improved the source code of the External module by modifying the following:
On External front-end, we added the possibility to check the "New Tab" option.
We have modified the files "admin.js", "site.handlebars" and "style.css" in the External module where we added a "target" option.
But we needed to modify some Nextcloud files too : "layout.user.php" and "MainMenu.js". So we also made a contribution on NextCloud Server in order for the implementation to be done properly.
For setting up the data option in the database and link the front-end to back-end, we had to modify the following files in External module :
"Application.php", "APIController.php", "SitesManager.php", "Personnal.php", "BeforeTemplateRenderedListener.php" and " Capabilites.php".
In all of this files, we added the "target" option which allows us to follow the activation of the front-end option to the back-end and the database.
If you have any questions about the implementation of the option, please do not hesitate to contact us by email at the following address: [email protected] or [email protected].
Regards.