ralixjs / ralix

✨ Microframework for building and organizing your front-end

Home Page:https://www.npmjs.com/package/ralix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New back() helper

markets opened this issue · comments

Provide back() helper (under Navigation), but with a fallback url:

back(fallbackUrl = null) {
  ...
}

Some times, I'd like to use something:

<a href="#" onclick="back('/home')">Back</a>

In case someone visits the page with that button, without a referrer, at least to easily provide a fallback url. It seems useful to me.

What do you think @jfelip937 @araluce @AlexLarra @franpb14?

It also seems simple to implement. I think it could be good.

Yeah, it makes sense this to have a place in Ralix. Also, I agree with @franpb14, this could be something easy to implement.