diff --git a/cms/version.py b/cms/version.py index 448157dd..38921d5d 100644 --- a/cms/version.py +++ b/cms/version.py @@ -1 +1 @@ -VERSION = "7.6" +VERSION = "7.7" diff --git a/frontend/src/static/js/components/profile-page/ProfilePagesHeader.js b/frontend/src/static/js/components/profile-page/ProfilePagesHeader.js index ec86c446..215e4ef5 100644 --- a/frontend/src/static/js/components/profile-page/ProfilePagesHeader.js +++ b/frontend/src/static/js/components/profile-page/ProfilePagesHeader.js @@ -374,6 +374,19 @@ class NavMenuInlineTabs extends React.PureComponent { render() { const isSelectMediaMode = inSelectMediaEmbedMode(); + // Append action=select_media to links when in select mode + const mediaLink = isSelectMediaMode + ? `${LinksContext._currentValue.profile.media}${LinksContext._currentValue.profile.media.includes('?') ? '&' : '?'}action=select_media` + : LinksContext._currentValue.profile.media; + + const sharedByMeLink = isSelectMediaMode + ? `${LinksContext._currentValue.profile.shared_by_me}${LinksContext._currentValue.profile.shared_by_me.includes('?') ? '&' : '?'}action=select_media` + : LinksContext._currentValue.profile.shared_by_me; + + const sharedWithMeLink = isSelectMediaMode + ? `${LinksContext._currentValue.profile.shared_with_me}${LinksContext._currentValue.profile.shared_with_me.includes('?') ? '&' : '?'}action=select_media` + : LinksContext._currentValue.profile.shared_with_me; + return (