-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardcoded slash #17
Comments
|
@korzhyk but in my use case I need to put the page number not after slash, but after <pagination v-bind:urlPrefix="'?page='"
v-bind:currentPage="parseInt(query.page)"
v-bind:lastPage="lastPage"
v-bind:displayPage="5"
class="is-small" /> But slash is hardcoded here. It's a very unflexible solution. I propose another way: |
Line 3 in 58a57f1
So, I faced with this problem before contribute #urlBuilder() too. And as you can see urlBuilder resolve this issue as well.
<pagination v-bind:urlBuilder="page => ({ query: { page } })"
v-bind:currentPage="parseInt(query.page)"
v-bind:lastPage="lastPage"
v-bind:displayPage="5"
class="is-small" /> ℹ️ Hardcoded slash placed for backward compatibility. |
@korzhyk Oh, I see. Thank you for your help! Everything is working now. |
I don't know why but you still keep to hard code the slash in your code. And I think the slash in the code below is not needed because you can input the slash in urlPrefix.
Why do you want to keep this slash between
${this.urlPrefix}
and${page}
?The text was updated successfully, but these errors were encountered: