In previous updates, window urls having dots are converted to slashes making it impossible to have dots in shutter urls. An example is shown below:
namespace windows/Routes;
class Home {
function __construct() {
self::call($this,
[
window(':user/2.0') => 'user'
]
)
}
function user() {
//do something ...
}
}
window() function will convert user/2.0 to user/2/0 is visited. This
will prevent the page from loading because by default, all dots are converted to slashes in the window's function. When working with urls such as this, it is
helpful to be able to overide such default behavior. The new version fixes this issue and the default behavior can now be modified by supplying a boolean argument
of true to the window's function.
An improved way of handing urls that contains dots
namespace windows/Routes;
class Home {
function __construct() {
self::call($this,
[
window(':user/2.0', true) => 'user'
]
)
}
function user() {
//do something ...
}
}
user() method will now be called when the relative page is visited.