]> git.mxchange.org Git - friendica.git/commitdiff
Replace profile tab GET parameter by route
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 28 Jan 2020 00:21:18 +0000 (19:21 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 28 Jan 2020 00:21:18 +0000 (19:21 -0500)
doc/Developers-Intro.md
doc/FAQ.md
doc/de/FAQ.md
include/conversation.php
mod/dfrn_poll.php
src/Content/Nav.php
src/Model/Contact.php
src/Module/Contact.php
view/theme/frio/theme.php

index f72ff4abeb0189a04e26a17767dd8259b768322c..3b8c93f0a17b69189bc23c6a8fb6b287b786935b 100644 (file)
@@ -154,5 +154,5 @@ If you are interested in improving those clients, please contact the developers
 
 * Android / LinageOS: **Friendiqa** [src](https://git.friendi.ca/lubuwest/Friendiqa)/[Google Play](https://play.google.com/store/apps/details?id=org.qtproject.friendiqa) developed by [Marco R](https://freunde.ma-nic.de/profile/marco)
 * iOS: *currently no client*
-* SailfishOS: **Friendiy** [src](https://kirgroup.com/projects/fabrixxm/harbour-friendly) - developed by [Fabio](https://kirgroup.com/profile/fabrixxm/?tab=profile)
-* Windows: **Friendica Mobile** for Windows versions [before 8.1](http://windowsphone.com/s?appid=e3257730-c9cf-4935-9620-5261e3505c67) and [Windows 10](https://www.microsoft.com/store/apps/9nblggh0fhmn) - developed by [Gerhard Seeber](http://mozartweg.dyndns.org/friendica/profile/gerhard/?tab=profile)
+* SailfishOS: **Friendiy** [src](https://kirgroup.com/projects/fabrixxm/harbour-friendly) - developed by [Fabio](https://kirgroup.com/profile/fabrixxm/profile)
+* Windows: **Friendica Mobile** for Windows versions [before 8.1](http://windowsphone.com/s?appid=e3257730-c9cf-4935-9620-5261e3505c67) and [Windows 10](https://www.microsoft.com/store/apps/9nblggh0fhmn) - developed by [Gerhard Seeber](http://mozartweg.dyndns.org/friendica/profile/gerhard/profile)
index 323cb161943f45845228c8ea45e5dbd467f11aec..11954e46f341523847af3e59fd6f3496fd9c7cb2 100644 (file)
@@ -91,16 +91,6 @@ in German:
 
     https://social.example.com/profile/example?lang=de.
 
-If the question mark is already in the url you need to do it using a ampersand.
-
-Example:
-
-    https://social.example.com/profile/example?tab=profile
-
-in German:
-
-    https://social.example.com/profile/example?tab=profile&lang=de.
-
 When a certain language is forced, the language remains until session is closed.
 
 <a name="contacts"></a>
index 85a6f389a22dbaa1911bc46f1612b250591cc8c6..2e71d7c933a6c1f226dc9bca189687b23a214bcd 100644 (file)
@@ -106,16 +106,6 @@ auf Deutsch:
 
      https://social.example.com/profile/example?lang=de.
 
-Wenn das Fragezeichen bereits in der URL verwendet wird, werden die einzelnen URL Parameter mit einem kaufmännischen Und getrennt werden.
-
-Ein Beispiel:
-
-    https://social.example.com/profile/example?tab=profile
-
-auf Deutsch:
-
-    https://social.example.com/profile/example?tab=profile&lang=de.
-
 <a name="contacts"></a>
 ### Was ist der Unterschied zwischen blockierten|ignorierten|archivierten|versteckten Kontakten?
 
index 3f500717aa14e6959dfad8ba47995e41cdd97b7b..0194e4ea56368486ca46736fa782d07391778730 100644 (file)
@@ -919,9 +919,9 @@ function item_photo_menu($item) {
        }
 
        if ($sparkle) {
-               $status_link = $profile_link . '?tab=status';
+               $status_link = $profile_link . '/status';
                $photos_link = str_replace('/profile/', '/photos/', $profile_link);
-               $profile_link = $profile_link . '?=profile';
+               $profile_link = $profile_link . '/profile';
        }
 
        if (!empty($pcid)) {
index c444f0389d7c5dd1da257a501649cb35e9bdbb58..bc0100bfa4756613cbbd7810345765073e573135 100644 (file)
@@ -538,7 +538,7 @@ function dfrn_poll_content(App $a)
 
                        switch ($destination_url) {
                                case 'profile':
-                                       DI::baseUrl()->redirect('profile/' . $profile . '?tab=profile');
+                                       DI::baseUrl()->redirect('profile/' . $profile . '/profile');
                                        break;
                                case 'photos':
                                        DI::baseUrl()->redirect('photos/' . $profile);
index 3024fcaea1b627478687fcdb2e53275a9a105227..8f565cc3d241e625ef1af87983f259a4f5425fcb 100644 (file)
@@ -155,7 +155,7 @@ class Nav
                if (local_user()) {
                        // user menu
                        $nav['usermenu'][] = ['profile/' . $a->user['nickname'], DI::l10n()->t('Status'), '', DI::l10n()->t('Your posts and conversations')];
-                       $nav['usermenu'][] = ['profile/' . $a->user['nickname'] . '?tab=profile', DI::l10n()->t('Profile'), '', DI::l10n()->t('Your profile page')];
+                       $nav['usermenu'][] = ['profile/' . $a->user['nickname'] . '/profile', DI::l10n()->t('Profile'), '', DI::l10n()->t('Your profile page')];
                        $nav['usermenu'][] = ['photos/' . $a->user['nickname'], DI::l10n()->t('Photos'), '', DI::l10n()->t('Your photos')];
                        $nav['usermenu'][] = ['videos/' . $a->user['nickname'], DI::l10n()->t('Videos'), '', DI::l10n()->t('Your videos')];
                        $nav['usermenu'][] = ['events/', DI::l10n()->t('Events'), '', DI::l10n()->t('Your events')];
index d20872ed64376c8df855c6917430ba0890920057..201447437945e3aa075d1c60a95e120ee65fcb45 100644 (file)
@@ -1230,9 +1230,9 @@ class Contact
                }
 
                if ($sparkle) {
-                       $status_link = $profile_link . '?tab=status';
+                       $status_link = $profile_link . '/status';
                        $photos_link = str_replace('/profile/', '/photos/', $profile_link);
-                       $profile_link = $profile_link . '?tab=profile';
+                       $profile_link = $profile_link . '/profile';
                }
 
                if (self::canReceivePrivateMessages($contact) && empty($contact['pending'])) {
index 1cb0132a0ea2fddd6a8131c9a31e068c725d7fa3..d087634e48732a76366ac8a4b02b5dddf90df1d1 100644 (file)
@@ -270,7 +270,7 @@ class Contact extends BaseModule
                                if (($a->argc == 3) && intval($a->argv[1]) && in_array($a->argv[2], ['posts', 'conversations'])) {
                                        DI::baseUrl()->redirect('profile/' . $contact['nick']);
                                } else {
-                                       DI::baseUrl()->redirect('profile/' . $contact['nick'] . '?tab=profile');
+                                       DI::baseUrl()->redirect('profile/' . $contact['nick'] . '/profile');
                                }
                        }
 
index 73ec954385afd4ec33eb716a09a079af5a7461f1..f256bec6957f8527e49fc2f9ab53a7c3c3cd7deb 100644 (file)
@@ -264,7 +264,7 @@ function frio_remote_nav($a, &$nav)
        if (!local_user() && !empty($server_url) && !is_null($remoteUser)) {
                // user menu
                $nav['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'], DI::l10n()->t('Status'), '', DI::l10n()->t('Your posts and conversations')];
-               $nav['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'] . '?tab=profile', DI::l10n()->t('Profile'), '', DI::l10n()->t('Your profile page')];
+               $nav['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'] . '/profile', DI::l10n()->t('Profile'), '', DI::l10n()->t('Your profile page')];
                $nav['usermenu'][] = [$server_url . '/photos/' . $remoteUser['nick'], DI::l10n()->t('Photos'), '', DI::l10n()->t('Your photos')];
                $nav['usermenu'][] = [$server_url . '/videos/' . $remoteUser['nick'], DI::l10n()->t('Videos'), '', DI::l10n()->t('Your videos')];
                $nav['usermenu'][] = [$server_url . '/events/', DI::l10n()->t('Events'), '', DI::l10n()->t('Your events')];