Forums | Mahara Community

Support /
Wrong redirection in mahara 20.04


Anthony Taubin's profile picture
Posts: 22

13 June 2020, 2:26

I just finished the upgrade from mahara 19.04 to mahara 20.04 and I have 2 problems :

1- When I click "save" to save a new page or a new collection, I'm redirected to the wrong url :

Example :

https://mywebsite/mahara/view/editlayout.php?new=1&id=2836

return this page https://mywebsite/view/blocks.php?id=2836

insteed of this page : https://mywebsite/mahara/view/blocks.php?id=2836

The page is created.

What can i do to solve the problem ? The siteroot's set up as https://mywebsite/mahara/.

 

2- When I open an existing page and want to modify it, the Accept and Save button works in English but not in French.

 

Cheers.

Anthony.

Anthony Taubin's profile picture
Posts: 22

13 June 2020, 3:47

I solved the problem with the pages by  replacing

        'goto'    => '/view/blocks.php?id=' . $view->get('id'), 

by

        'goto'    => get_config('wwwroot') . 'view/blocks.php?id=' . $view->get('id'), 

in view/editlayout.php.

 

I almost solved it for the collections by replacing

        'goto'    => $collection->post_edit_redirect_url($new, $copy, $urlparams),

by

        'goto'    => get_config('wwwroot') . $collection->post_edit_redirect_url($new, $copy, $urlparams),

in collection/edit.php

The redirection is https://mywebsite/mahara//collection/views.php?id=59 but it works.

 

If you have a better solution, please help !

Cheers.

Anthony.

Anthony Taubin's profile picture
Posts: 22

13 June 2020, 4:07

With this line

        'goto'    => get_config('wwwroot') . 'collection/views.php?id=' . $collection->get('id')

it seems like it's better.

I hope I didn't break anything important in my mahara installation... ;-)

 

Anthony Taubin's profile picture
Posts: 22

13 June 2020, 22:14

Hi

For the translation issue, you have to add a s :

$string['confirmconversionmessage'] = 'Avec la version 19.10 de Mahara, nous avons introduit une nouvelle méthode de mise en page. Pour pouvoir modifier cette page vous devez tout d\'abord la convertir à ce nouveau format.
Si vous désirez convertir la page au nouveau format de mise en page, cliquez sur « Accepter ». Pour convertir toutes les pages de votre portfolio et ne plus voir ce message à l\'avenir, cliquez sur « Accepter toujours ». Cette option peut être modifiée dans votre page de <a href="%">Préférences</a>. Pour quitter la page sans la modifier cliquez sur « Annuler ».
';

by

$string['confirmconversionmessage'] = 'Avec la version 19.10 de Mahara, nous avons introduit une nouvelle méthode de mise en page. Pour pouvoir modifier cette page vous devez tout d\'abord la convertir à ce nouveau format.
Si vous désirez convertir la page au nouveau format de mise en page, cliquez sur « Accepter ». Pour convertir toutes les pages de votre portfolio et ne plus voir ce message à l\'avenir, cliquez sur « Accepter toujours ». Cette option peut être modifiée dans votre page de <a href="%s">Préférences</a>. Pour quitter la page sans la modifier cliquez sur « Annuler ».
';

in fr.utf8/lang/fr.utf8/view.php

 

Cheers.

Robert Lyon's profile picture
Posts: 749

15 June 2020, 8:08

Hi Anthony,

Thank you for this report - I've updating the string in the translation system

https://translations.launchpad.net/mahara-lang/trunk/+pots/mahara/fr/+translate?batch=10&show=all&search=Avec+la+version+19

So once a maintainer of the French language pack reviews it - it will be updated and ready for use

Cheers

Robert

Robert Lyon's profile picture
Posts: 749

15 June 2020, 8:37

Hi Anthony,

I believe we can fix the collection redirect by making the following changes

https://reviews.mahara.org/#/c/11014/3/htdocs/lib/collection.php

Instead of the change you made.

Please try this change and see if works for you

Cheers

Robert

3 posts by Robert Lyon were deleted

9 results