mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix: /:initialTab? is shown on the URL when opening note with some ways (#16353)
This commit is contained in:
@@ -165,6 +165,8 @@ function buildFullPath(args: {
|
||||
const replaceRegex = new RegExp(`:${key}(\\?)?`, 'g');
|
||||
fullPath = fullPath.replace(replaceRegex, value ? encodeURIComponent(value) : '');
|
||||
}
|
||||
// remove any optional parameters that are not provided
|
||||
fullPath = fullPath.replace(/\/:\w+\?(?=\/|$)/g, '');
|
||||
}
|
||||
|
||||
if (args.query) {
|
||||
|
||||
Reference in New Issue
Block a user