webix Jet, send parameter to view by url

I need to send a parameter to existing view by url (to use it in SEO)
example:
current url is: /app/view
need to change it to: /app:lang=en/view
other parts of url must not change
how to do this in new Jet?
in prev version this was possible using this.$scope.show({lang:'en'})

Tagged:

Comments

  • I can confirm the regression, will be fixed.

    Right now, show accepts only one string parameter (url).
    You can use

    .show("./app?lang=en")
    

    still, these parameters will be available in the JetView class methods (urlChange, for example)

  • I am using typescript version, so my workaround is

    import {parse, url2str} from "Jet/helpers"
    ...
    const url = parse(app.getRouter().get())
    webix.extend(url[0].params, { lang:'en' }, true)
    app.getRouter().set(url2str(url))
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!