Fix pagination links not accounting for homeserver selection (#103)
Fix https://github.com/matrix-org/matrix-public-archive/issues/93 Previously caused the `?homeserver` query parameter to be lost when paginating
This commit is contained in:
parent
048f03fff7
commit
3b4fb52bfe
|
@ -213,6 +213,7 @@ class RoomDirectoryViewModel extends ViewModel {
|
|||
get nextPageUrl() {
|
||||
if (this._nextPaginationToken) {
|
||||
return this._matrixPublicArchiveURLCreator.roomDirectoryUrl({
|
||||
homeserver: this.homeserverSelection,
|
||||
searchTerm: this.searchTerm,
|
||||
paginationToken: this._nextPaginationToken,
|
||||
});
|
||||
|
@ -224,6 +225,7 @@ class RoomDirectoryViewModel extends ViewModel {
|
|||
get prevPageUrl() {
|
||||
if (this._prevPaginationToken) {
|
||||
return this._matrixPublicArchiveURLCreator.roomDirectoryUrl({
|
||||
homeserver: this.homeserverSelection,
|
||||
searchTerm: this.searchTerm,
|
||||
paginationToken: this._prevPaginationToken,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue