When i refresh the page it redirect the home instead of redirecting the page

1
When i  refresh the page it redirect the home instead of refreshing  the page, can any one help me  in this. Thanks in advance
asked
2 answers
4

Hi Mahammed,

Mendix is a one page application, which means that the browser always will stay on “index.html” and never actually navigates to other pages.

If you want the user to reload the same page after a browser refresh, you can rewrite the URL. This can easily be done by using the native Mendix functionality (see below), or using some widget like the Set URL in combination with a deeplink.

 

Good luck!

Johan

answered
0

No sé si encontraste como hacerlo. Pero como mencionó Johan Flikweert. La forma de usarlo es muy simple. 

En las propiedades de tu página puedes definir la URL que te gustaría que tuviera tu página y no me refiero a todo el texto como: "http://dominio.com/nombre-pagina", sino algo más sencillo, cómo: 

image.png

una vez que instalas SET URL te apareceá en los widgets del lado de tolbox, puedes buscarlo y arrastrarlo al contenido de tu página, desde ahí envias el nombre de tu página como se lo asignaste anteriormente pero con ${} estos datos.

image.png

de esta manera cuando refresques el contenido de la página te regresará a la misma página y ya no al home page

answered