Will not navigate when params has dot (.) at the end.
Any suggestions?
…
var alt1 = ‘test.’; // not working
var alt2 = ‘te.st’; // works
var alt3 = ‘.test’; // works
var alt4 = ‘test’; // works
app.views.main.router.navigate({
name: ‘myname’,
params: {
spillID: spillID,
alt1: alt1,
alt2: alt2,
alt3: alt3,
alt4: alt4,
totalas: totalas
}
I tried to search for this and found this solution, but it will not help me:
@Timidyo .
So i test it and the solution was really simple;
i change this route:
path: '/post/:postid/:posturl/:postdate/:postcaption/',
for this one:
// Note i remove the last slash ---> /
path: '/post/:postid/:posturl/:postdate/:postcaption',
and my link is like this:
// also no slash
<a class="item-content item-link" href="/post/13/userid_533783103.jpg/2018-05-11 16:34:39/Testing Pls work.">
my result on pageInit page.route.params
{
"postid": "13",
"posturl": "userid_533783103.jp…
Try to use encodeURIComponent
var alt1 = encodeURIComponent(‘test.’);
and on another side you will need to use decodeURIComponent
I tried it now but got the same problem